diff --git a/server/index.ts b/server/index.ts index 0d41627..9730b47 100644 --- a/server/index.ts +++ b/server/index.ts @@ -2325,6 +2325,7 @@ const server = Bun.serve({ url.pathname.startsWith("/api/") || url.pathname.startsWith("/data/") || url.pathname.startsWith("/encryptid/") || + url.pathname.startsWith("/rtasks/check/") || url.pathname.startsWith("/.well-known/") || url.pathname === "/about" || url.pathname === "/admin" || @@ -2393,6 +2394,11 @@ const server = Bun.serve({ // ── Bare-domain routing: rspace.online/{...} ── if (!subdomain && hostClean.includes("rspace.online")) { + // Top-level routes that must bypass module rewriting + if (url.pathname.startsWith("/rtasks/check/")) { + return app.fetch(req); + } + const pathSegments = url.pathname.split("/").filter(Boolean); if (pathSegments.length >= 1) { const firstSegment = pathSegments[0].toLowerCase();