Hey all, I just went through the process of migrating my Remix site to the new Workers static assets

Hey all, I just went through the process of migrating my Remix site to the new Workers static assets setup.
Things went pretty smoothly, however the one thing I couldn't find a solution for is how to set the
headers
for various asset routes.
In pages, we used to be able to have a
_headers
file in the public folder - https://developers.cloudflare.com/pages/configuration/headers/
But that doesn't seem to work anymore.
What is the recommended way to do this now?
Cloudflare Docs
To attach headers to Cloudflare Pages responses, create a _headers plain text file in the output folder of your project. It is usually the folder that contains the deploy-ready HTML files and assets generated by the build, such as favicons. Changes to headers will be updated to your website at build time. Make sure you commit and push the file t...
Was this page helpful?