From cf684fa82936111520dfed50d90ac7301889f832 Mon Sep 17 00:00:00 2001 From: "Satsuki Akiba (aider)" Date: Wed, 4 Jun 2025 10:51:19 +0900 Subject: [PATCH] refactor: improve index.html serving and logging --- server.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server.ts b/server.ts index 569bcbc..4623055 100644 --- a/server.ts +++ b/server.ts @@ -107,8 +107,10 @@ app.get("*", async (c) => { const indexPath = path.join(frontendBuildDir, "server", "pages", "index.html"); const file = Bun.file(indexPath); if (await file.exists()) { + console.log(`Serving index.html from ${indexPath}`); return c.body(file, 200, { "Content-Type": "text/html; charset=utf-8" }); } + console.error(`index.html not found at ${indexPath}`); return c.notFound(); });