fix(studio): serve favicon.svg from embedded preview server (#806)

The /favicon.svg request was falling through to the SPA catch-all, which
returns index.html. The browser received HTML instead of an SVG and
silently discarded it, leaving the tab with no icon.

Added an explicit route for /favicon.svg alongside the existing /assets/*
and /icons/* static routes.

Closes #804
This commit is contained in:
Miguel Ángel
2026-05-13 23:53:33 +02:00
committed by GitHub
parent 92bccfdf78
commit a52c73ebe1
+1
View File
@@ -420,6 +420,7 @@ export function createStudioServer(options: StudioServerOptions): StudioServer {
};
app.get("/assets/*", serveStudioStaticFile);
app.get("/icons/*", serveStudioStaticFile);
app.get("/favicon.svg", serveStudioStaticFile);
// SPA fallback
app.get("*", (c) => {