/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-serve-static-files-2ddaa6b15818-serve-static-files-s0385-c0000.md
Serve static files - hono-docs
Serve static files Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt serve static files Summary If...
Serve static files
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#serve-static-files
Summary
If you want to serve static files, you can use the Static Assets feature of Cloudflare Workers. Specify the directory for the files in wrangler.jsonc: ```jsonc "assets": { "di...
Content
If you want to serve static files, you can use the Static Assets feature of Cloudflare Workers. Specify the directory for the files in wrangler.jsonc:
"assets": { "directory": "public" }Then create the public directory and place the files there. For instance, ./public/static/hello.txt will be served as /static/hello.txt.
.
├── package.json
├── public
│ ├── favicon.ico
│ └── static
│ └── hello.txt
├── src
│ └── index.ts
└── wrangler.jsonc