Skip to content

src/dazzle_back/runtime/static_files.py

Generated: 2026-03-30T04:38:48.379951+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Combined static file serving from multiple directories.

Serves static files from project and framework directories, with project files taking priority (first match wins). This enables project-level images (e.g. hero-office.webp) to be served alongside framework assets (dz.js, dz.css).

Adds Cache-C...

Key Exports

  • CombinedStaticFiles
  • lookup_path
  • file_response

Dependencies

Imports

  • os
  • pathlib.Path
  • typing.Any
  • starlette.responses.Response
  • starlette.staticfiles.StaticFiles
  • dazzle_ui.runtime.asset_fingerprint.FINGERPRINT_RE
  • dazzle_ui.runtime.asset_fingerprint.strip_fingerprint

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/unit/test_static_files.py
  • tests/integration/test_runtime_e2e.py
  • tests/integration/test_runtime_pipeline.py
  • tests/unit/test_runtime_test_routes.py
  • tests/unit/test_runtime_services.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.