mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 12:54:29 +00:00
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:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user