1.0.0 • Published 10 months ago
astro-integration-cloudflare-pages-headers v1.0.0
astro-integration-cloudflare-pages-headers
This is an Astro integration that takes the headers provided to the Astro config object and applies them to a Cloudflare Pages deployment _headers file during build.
Usage
Prerequisites
TODO:
Installation
Install the integration automatically using the Astro CLI:
pnpm astro add astro-integration-cloudflare-pages-headersnpx astro add astro-integration-cloudflare-pages-headersyarn astro add astro-integration-cloudflare-pages-headersOr install it manually:
- Install the required dependencies
pnpm add astro-integration-cloudflare-pages-headersnpm install astro-integration-cloudflare-pages-headersyarn add astro-integration-cloudflare-pages-headers- Add the integration to your astro config
+import integration from "astro-integration-cloudflare-pages-headers";
export default defineConfig({
integrations: [
+ integration(),
],
});Configuration
TODO:configuration
Contributing
This package is structured as a monorepo:
playgroundcontains code for testing the packagepackagecontains the actual package
Install dependencies using pnpm:
pnpm i --frozen-lockfileStart the playground and package watcher:
pnpm devYou can now edit files in package. Please note that making changes to those files may require restarting the playground dev server.
Licensing
MIT Licensed. Made with ❤️ by martinsilha.
Acknowledgements
- Created using astro-integration-template.
1.0.0
10 months ago