Litestar Static Files

Serve static assets in Litestar with `create_static_files_router()`, explicit mount paths, HTML mode, cache-control policy, URL reversal, custom file systems, and symlink-safe directory boundaries. Use when exposing JS, CSS, images, downloadable artifacts, or static HTML from controlled directories. Do not use for upload ingestion, user-writable file publication, or arbitrary file-download endpoints that need per-request authorization logic.

alti3 68fe8c0 5 files · 16.1 KB Updated

File contents

alti3/litestar-skills/tree/main/plugins/litestar/skills/litestar-static-files commit 68fe8c0add

Frequently asked questions

npx skillmds@latest add alti3/litestar-static-files