From 11e73f28dabd2c2b6d694db6b2023a4f1fbb0d4f Mon Sep 17 00:00:00 2001 From: Praveen K B Date: Tue, 11 Aug 2026 16:15:08 +0530 Subject: [PATCH] fix(ui): serve favicon from build root --- src/http.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/http.ts b/src/http.ts index 81561e7..7389f31 100644 --- a/src/http.ts +++ b/src/http.ts @@ -86,6 +86,16 @@ app.get("/assets/*", async (c) => { }); }); +// Vite copies public files to the build root, outside /assets. +app.get("/favicon.svg", async (c) => { + const filePath = join(UI_DIR, "favicon.svg"); + if (!existsSync(filePath)) return c.notFound(); + const buf = await readFile(filePath); + return new Response(buf, { + headers: { "Content-Type": "image/svg+xml" }, + }); +}); + app.get("/", serveRoot); // Streamable HTTP clients probe GET /mcp for an optional standalone SSE stream.