Skip to content

Fix dashboard favicon serving#85

Merged
letsrokk merged 1 commit into
masterfrom
agent/fix-dashboard-favicon
Jul 20, 2026
Merged

Fix dashboard favicon serving#85
letsrokk merged 1 commit into
masterfrom
agent/fix-dashboard-favicon

Conversation

@letsrokk

Copy link
Copy Markdown
Owner

Summary

  • include the dashboard public/ directory in the Docker build stage so Vite can copy favicon.svg into dist
  • add an exact Nginx route for /__fleet/favicon.svg so the favicon is served as a static file instead of falling through to the SPA shell

Root Cause

The deployed dashboard image was built without fleet-dash/public/, so dist/favicon.svg was absent inside the image. Requests to /__fleet/favicon.svg then hit the SPA fallback and returned index.html.

Verification

  • npm run build in fleet-dash
  • npm test -- --run in fleet-dash
  • docker build -t mock-fleet-dash:favicon-fix . in fleet-dash
  • ran the image locally and verified curl -i http://localhost:18080/__fleet/favicon.svg returns 200 OK with Content-Type: image/svg+xml

@letsrokk
letsrokk marked this pull request as ready for review July 20, 2026 11:22
@letsrokk
letsrokk merged commit a615cd8 into master Jul 20, 2026
3 checks passed
@letsrokk
letsrokk deleted the agent/fix-dashboard-favicon branch July 20, 2026 11:22
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.

1 participant