Static Assets on Workers, 404 not found
Hello,
I am deploying a website to Workers.
_routes.json
looks good:
But then when I try to make some requests to the CSS, I get a 404 not found:
Other resources are fine.
Is it because of filename format with underscore or something?
Thank you!4 Replies
I don’t think Assets supports configuring routes yet
Though not sure that is what is your issue either
@KNTH You can host your assets (static files) on Cloudflare pages
Yes, but I want to use Workers, and for example features like Observability Logs.
I've read this: https://developers.cloudflare.com/workers/static-assets/
and this: https://developers.cloudflare.com/workers/frameworks/framework-guides/astro/
and watched this: https://www.youtube.com/watch?v=W45MIi_t_go
So I was excited to try Workers!
Alright