honojs / website

Repository for hono.dev
https://hono.dev
78 stars 261 forks source link

docs(getting-started): static files on CF Workers #247

Open stukennedy opened 7 months ago

stukennedy commented 7 months ago

there is a requirement to add a manifest to the serveStatic adapter method, the docs correctly shows that you need to import a manifest from the special __STATIC_CONTENT_MANIFEST module

However, this results in a Typescript error, as this module is generated by wrangler. This change to the docs explains how the user can add a type definition so that the error goes away, otherwise they may assume that the example is incorrect.

yusukebe commented 7 months ago

Hi @stukennedy

Thanks! That's a good suggestion. I've left the comments. Please check them.