litestar-static-files
Installation
SKILL.md
Static Files
Execution Workflow
- Decide whether the app needs normal asset serving, downloadable files, or static HTML mode.
- Mount assets with
create_static_files_router()under an explicit path and controlled directories. - Set delivery behavior intentionally: inline vs attachment, HTML mode, name, schema visibility, and router metadata.
- Choose cache behavior that matches asset mutability and deployment strategy.
- Lock down file system boundaries, especially symlink behavior and any remote/custom file system integration.
- Verify URL reversal,
404behavior, and template references before treating the mount as stable.