Skip to content

fix: serve local icons from Docker volume mounts#190

Open
N48LL wants to merge 1 commit intohywax:mainfrom
N48LL:main
Open

fix: serve local icons from Docker volume mounts#190
N48LL wants to merge 1 commit intohywax:mainfrom
N48LL:main

Conversation

@N48LL
Copy link
Copy Markdown

@N48LL N48LL commented Feb 14, 2026

Icons referenced via url: icons/example.svg return 404 when added through Docker volume mounts because Nitro pre-compiles static assets at build time.

  • Added a catch-all route at /icons/* that reads from disk at runtime instead.
  • Includes path traversal protection and restricts to image file types.

Serves icons from filesystem at runtime, bypassing Nitro's pre-compiled
asset map. This allows icons added via Docker volume mount after build
to be served correctly.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@tippfehlr
Copy link
Copy Markdown

Pushed a docker container with this fix to ghcr.io/tippfehlr/mafl:fix-local-icons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants