totallyinformation
CDCloudflare Developers
•Created by totallyinformation on 12/1/2024 in #pages-help
_headers file and Astro
Hi all, new to CF Pages and Astro (static generated). Even so, I've managed to create a nice blog site pretty quickly.
However, I want to make use of some custom headers but I can't figure out how to make the Astro build process create a file called
_headers
in the dist root folder. If I create a /src/pages/_headers.js
, the Astro build ignores it. If I rename to headers.js
it produces the correct output but with the wrong name,
Can anyone guide me to the correct process please? Thanks.4 replies