astro
Version:
Astro is a modern site builder with web best practices, performance, and DX front-of-mind.
7 lines (6 loc) • 381 B
TypeScript
/**
* Generates static speculation rules JSON using `"source": "document"` with CSS selector matching.
* This produces a deterministic payload that can be hashed at build time for CSP compatibility,
* unlike the dynamic per-URL `"source": "list"` approach in `appendSpeculationRules()`.
*/
export declare function generateSpeculationRulesContent(prefetchAll: boolean): string;