UNPKG

@twocaretcat/astro-snapshot

Version:

An Astro integration for generating screenshots of your pages automatically at build time. Perfect for creating social images, content previews, dynamic icons, and more!

16 lines 632 B
import { type AstroIntegration } from 'astro'; import type { SnapshotIntegrationConfig } from './types.js'; /** * Creates an Astro integration that captures screenshots of specified pages * during the `astro:build:done` lifecycle event. * * @param config - Integration configuration, including page mappings, defaults, * and Puppeteer settings. * @returns The configured Astro integration. */ export default function snapshot(config: SnapshotIntegrationConfig): AstroIntegration; /** * Type helper for the integration configuration */ export type { SnapshotIntegrationConfig as Config }; //# sourceMappingURL=index.d.ts.map