STATIC_CONTENT_MANIFEST Error
I'm getting this error. I don't understand why or what to do about it. Ideas?
7 Replies
You wouldn’t happen to be using Workers Sites?
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.This manifest? https://github.com/honojs/hono/blob/ae3546e32a533af782eadf0bc7221d2a01c2a81f/src/adapter/cloudflare-workers/server-static-module.ts#L5
GitHub
hono/src/adapter/cloudflare-workers/server-static-module.ts at ae35...
Fast, Lightweight, Web-standards. Contribute to honojs/hono development by creating an account on GitHub.
This specifically: https://hono.dev/getting-started/cloudflare-workers#serve-static-files
Cloudflare Workers - Hono
Ultrafast web framework for Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Lagon, Node.js, and others. Fast, but not only fast.
Yes! Somehow I overlooked that when searching through all the hono code 🤦♂️.
I'm still not sure how to solve it though?
Just to be clear, are using serve static?
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: