Docs / Static files

Static files

Serve a public/ directory alongside routes.

Anything in public/ is served at the root, with Cache-Control, ETag, and Last-Modified set automatically. / falls back to index.html. Path traversal is rejected.

public/
├── index.html       → GET /
├── favicon.ico      → GET /favicon.ico
└── assets/logo.svg  → GET /assets/logo.svg