Skip to content

Commit a52c73e

Browse files
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
1 parent 92bccfd commit a52c73e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/cli/src/server/studioServer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ export function createStudioServer(options: StudioServerOptions): StudioServer {
420420
};
421421
app.get("/assets/*", serveStudioStaticFile);
422422
app.get("/icons/*", serveStudioStaticFile);
423+
app.get("/favicon.svg", serveStudioStaticFile);
423424

424425
// SPA fallback
425426
app.get("*", (c) => {

0 commit comments

Comments
 (0)