Static Assets on Workers, 404 not found

Hello, I am deploying a website to Workers. _routes.json looks good:
{
"version": 1,
"include": [
"/*"
],
"exclude": [
"/_astro/*",
"/android-chrome-192x192.png",
"/android-chrome-512x512.png",
"/apple-touch-icon.png",
"/favicon-16x16.png",
"/favicon-32x32.png",
"/favicon.ico"
]
}
{
"version": 1,
"include": [
"/*"
],
"exclude": [
"/_astro/*",
"/android-chrome-192x192.png",
"/android-chrome-512x512.png",
"/apple-touch-icon.png",
"/favicon-16x16.png",
"/favicon-32x32.png",
"/favicon.ico"
]
}
But then when I try to make some requests to the CSS, I get a 404 not found:
[wrangler:inf] GET /_astro/_slug_.B8U6HK6z.css 404 Not Found (1ms)
[wrangler:inf] GET /_astro/_slug_.B8U6HK6z.css 404 Not Found (2ms)
[wrangler:inf] GET /_astro/_slug_.B8U6HK6z.css 404 Not Found (2ms)
[wrangler:inf] GET /_astro/_slug_.B8U6HK6z.css 404 Not Found (2ms)
[wrangler:inf] GET /_astro/_slug_.B8U6HK6z.css 404 Not Found (2ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (3ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon-32x32.png 200 OK (1ms)
[wrangler:inf] GET /favicon-32x32.png 304 Not Modified (2ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon-32x32.png 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon-32x32.png 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (1ms)
[wrangler:inf] GET /_astro/_slug_.B8U6HK6z.css 404 Not Found (1ms)
[wrangler:inf] GET /_astro/_slug_.B8U6HK6z.css 404 Not Found (2ms)
[wrangler:inf] GET /_astro/_slug_.B8U6HK6z.css 404 Not Found (2ms)
[wrangler:inf] GET /_astro/_slug_.B8U6HK6z.css 404 Not Found (2ms)
[wrangler:inf] GET /_astro/_slug_.B8U6HK6z.css 404 Not Found (2ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (3ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon-32x32.png 200 OK (1ms)
[wrangler:inf] GET /favicon-32x32.png 304 Not Modified (2ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon-32x32.png 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon-32x32.png 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (1ms)
Other resources are fine. Is it because of filename format with underscore or something? Thank you!
4 Replies
Hello, I’m Allie!
I don’t think Assets supports configuring routes yet Though not sure that is what is your issue either
<Petar_mc/>
<Petar_mc/>2mo ago
@KNTH You can host your assets (static files) on Cloudflare pages
KNTH
KNTHOP2mo ago
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!
<Petar_mc/>
<Petar_mc/>2mo ago
Alright
Want results from more Discord servers?
Add your server