Revert "Fixed the remaining Manager runtime coupling."

This reverts commit bc45608023.
This commit is contained in:
Stefan Lazic committed 2026-09-05 09:32:23 +01:00
1 parent 65d2c7322b
commit 3e9fe60faf
11 files changed
+17 -161

No files matched your search

+2 -19
View File
@@ -1,20 +1,3 @@
/**
* Business Auth.js is intentionally unavailable in the standalone Manager
* deployment. Keeping this check before the dynamic import prevents a stale
* SessionProvider or direct request from initialising Prisma there.
*/
function managerAuthDisabled() {
return process.env.MANAGER_MODE === "true";
}
import { handlers } from "@/auth";
export async function GET(request: Request) {
if (managerAuthDisabled()) return new Response(null, { status: 404 });
const { handlers } = await import("@/auth");
return handlers.GET(request);
}
export async function POST(request: Request) {
if (managerAuthDisabled()) return new Response(null, { status: 404 });
const { handlers } = await import("@/auth");
return handlers.POST(request);
}
export const { GET, POST } = handlers;