/Knowledge/sources/honojs__hono/examples/serve-static-readme-md--1480949ff2bb.md

Example: serve-static/README.md - hono-docs

Example: serve static/README.md Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://raw.githubusercontent.com/honojs/examples/mai...

Example: serve-static/README.md

Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://raw.githubusercontent.com/honojs/examples/main/serve-static/README.md#hono-static-file-example-for-cloudflare-workers

Summary

This example demonstrates how to serve static files using Cloudflare Workers. Please learn more in the Hono documentation and [Cloudflare Workers documentatio...

Content

This example demonstrates how to serve static files using Cloudflare Workers. Please learn more in the Hono documentation and Cloudflare Workers documentation.

Before you can start publishing your service to cloudflare worker, you must sign up for a Cloudflare Workers account first, you can check out this document

You can update the information (name, zone_id, etc) in wrangler file, then you can test and deploy your service by simply doing,

npm install
npm run dev # Start a local server for developing your worker
npm run deploy # Publish your worker to the orange cloud

Metadata

{
  "chunk_index": 0,
  "citation": "https://raw.githubusercontent.com/honojs/examples/main/serve-static/README.md#hono-static-file-example-for-cloudflare-workers",
  "coverage_role": "examples",
  "qualified_title": "Hono / examples / Hono static file example for Cloudflare Workers",
  "repo_path": "serve-static/README.md",
  "retrieved_at": "2026-07-02T05:51:01Z",
  "section_index": 0,
  "source_id": "/honojs/hono",
  "source_type": "examples",
  "target_label": "examples",
  "title": "Example: serve-static/README.md",
  "upstream_url": "https://raw.githubusercontent.com/honojs/examples/main/serve-static/README.md",
  "version": "2026"
}