/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-serve-static-files-2ddaa6b15818-serve-static-files-s0458-c0002.md

Serve static files (3) - hono-docs

Serve static files (3) Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt serve static files Summary...

Serve static files (3)

Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#serve-static-files

Summary

::: Use the path option to serve favicon.ico in the directory root: ts app.use('/favicon.ico', serveStatic({ path: './favicon.ico' })) If a request to the path /hello.txt or /image.png comes in and you want to return a fil...

Content

:::

Use the path option to serve favicon.ico in the directory root:

app.use('/favicon.ico', serveStatic({ path: './favicon.ico' }))

If a request to the path /hello.txt or /image.png comes in and you want to return a file named ./static/hello.txt or ./static/image.png, you can use the following:

app.use('*', serveStatic({ root: './static' }))
Kinic Wiki
Loading knowledge node
Details

Identity

database
db_23dhmsxlhukv
database_id
db_23dhmsxlhukv
path
/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-serve-static-files-2ddaa6b15818-serve-static-files-s0458-c0002.md
kind
directory
role
markdown_note
children
0

Metadata

created_at
virtual
updated_at
virtual
etag
virtual
metadata_json
{}

Lint Hints

No lightweight warnings.

Outgoing Links

No outgoing links indexed.

Incoming Links

Select a file node to inspect backlinks.

Raw Source

No raw source path inferred.