You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are right. We can now use serveStatic() instead of ctx.env.ASSETS.fetch. These (e.g, using esbuild) are old ways, so we have to create the document based on the current starter structure.
@yusukebe Would renewing the Cloudflare Pages Hono framework documentation, as discussed in honojs/hono#838, remove the need to even mention serveStatic here?
If so, it probably makes sense to close this issue.
Existing documentation URL(s)
Pages > Framework guides > Deploy a Hono site
What changes are you suggesting?
To serve static files using Hono, the following instructions are currently given in the documentation:
Since honojs/hono#1273 was added to address honojs/hono#1264 last year it is now possible to instead write:
Additionally, this prevents a TypeScript problem that occurs when following the steps in the current documentation:
Additional information
No response
The text was updated successfully, but these errors were encountered: