Revert "Request fix"

This reverts commit d9a253a974.
This commit is contained in:
Stefan Lazic committed 2026-09-05 09:32:21 +01:00
1 parent 638b851fce
commit 65d2c7322b
3 files changed
+4 -7

No files matched your search

+2 -4
View File
@@ -1,5 +1,3 @@
import { NextRequest } from "next/server";
/**
* Business Auth.js is intentionally unavailable in the standalone Manager
* deployment. Keeping this check before the dynamic import prevents a stale
@@ -9,13 +7,13 @@ function managerAuthDisabled() {
return process.env.MANAGER_MODE === "true";
}
export async function GET(request: NextRequest) {
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: NextRequest) {
export async function POST(request: Request) {
if (managerAuthDisabled()) return new Response(null, { status: 404 });
const { handlers } = await import("@/auth");
return handlers.POST(request);