Replies: 1 comment 1 reply
-
I also ran into this today. I want to avoid Cloudflare Worker Sites since it is deprecated in favor of Cloudflare Pages. Cloudflare's and Hono's documentation recommend 2 different approaches and neither is ideal. Hono's documentation for Cloudflare Pages is file-first, meaning it prioritizes static files over functions. All function requests must have the path prefix (eg Cloudflare Page's documentation for deploying a Hono site is function-first, meaning it prioritizes function routes over static files. All static file requests must have a path prefix (eg |
Beta Was this translation helpful? Give feedback.
-
The docs make reference to Workers Sites for this, but Cloudflare states 'Do not use Workers Sites for new projects.'
If I want to return a static asset (e.g. an image) from a Worker (not a Pages project) using Hono, what's the current recommended approach (assuming Workers Sites is not the best answer as of today)?
Thanks,
Stephen
Beta Was this translation helpful? Give feedback.
All reactions