STATIC_CONTENT_MANIFEST Error

I'm getting this error. I don't understand why or what to do about it. Ideas?
No description
7 Replies
Hello, I’m Allie!
You wouldn’t happen to be using Workers Sites?
JustinNoel
JustinNoelOP13mo ago
nope. I'm using pages with hono. I use esbuild to create a single worker.js file This just started yesterday after updating hono. I've asked on the hono forum as well. well bummer. I had upgraded from hono 2.x to 3.X for new features. That's when this error came in to play. I've gone all the way down to hono 3.0.0 and the problem is still there. So it looks like updating to 3.0 is what's killing me. However, this problem seems to be coming from the workers SDK. The Hono code never mentions STATIC_CONTENT_MANIFEST. The workers-sdk is literred with it.
Hello, I’m Allie!
Cloudflare Workers - Hono
Ultrafast web framework for Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Lagon, Node.js, and others. Fast, but not only fast.
JustinNoel
JustinNoelOP13mo ago
Yes! Somehow I overlooked that when searching through all the hono code 🤦‍♂️. I'm still not sure how to solve it though?
Hello, I’m Allie!
Just to be clear, are using serve static?
JustinNoel
JustinNoelOP13mo ago
Oh, it's because I'm using pages and that's for just regular cloudflare workers. , yes I am using serve static. So I commented out out all the serve static code The problem is resolved. So I guess I have to go back to not using the serve static middleware. thanks so much for the pusher in the right direction. For serving assets in Pages, I just use the following:
app.get("/assets/*", async (c) => {
return await c.env.ASSETS.fetch(c.req.raw);
});
app.get("/assets/*", async (c) => {
return await c.env.ASSETS.fetch(c.req.raw);
});
Want results from more Discord servers?
Add your server