diff --git a/server/index.ts b/server/index.ts index 6f473c6..fce8d89 100644 --- a/server/index.ts +++ b/server/index.ts @@ -524,6 +524,12 @@ const server = Bun.serve({ return new Response("WebSocket upgrade failed", { status: 400 }); } + // ── Explicit page routes (before Hono, to avoid /:space catch-all) ── + if (url.pathname === "/admin") { + const adminHtml = await serveStatic("admin.html"); + if (adminHtml) return adminHtml; + } + // ── Static assets (before Hono routing) ── if (url.pathname !== "/" && !url.pathname.startsWith("/api/") && !url.pathname.startsWith("/ws/")) { const assetPath = url.pathname.slice(1);