/Knowledge/sources/honojs__hono/llms-full/cloudflare-workers-serve-static-files--fc68abd503fe.md
Cloudflare Workers: Serve static files - hono-docs
Cloudflare Workers: Serve static files Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt serve static fi...
Cloudflare Workers: Serve static files
Source evidence: /Sources/honojs__hono/provenance.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
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#serve-static-files",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Cloudflare Workers > Serve static files",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 385,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Cloudflare Workers: Serve static files",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}