UNPKG

astro-cloudflare-pages-headers

Version:

A lightweight integration for Astro that automatically generates a Cloudflare Pages _headers file for deployments based on your server header configuration.

18 lines (14 loc) 448 B
export type HeadersFlat = Record<string, string>; export type HeadersNested = Record<string, Record<string, string>>; export type AstroHeaders = HeadersFlat | HeadersNested; export type Routes = Record<string, Record<string, string>>; export interface AstroConfig { server?: { headers?: AstroHeaders; }; } export interface AstroIntegrationLogger { info(message: string): void; warn(message: string): void; error(message: string): void; }