refactor maintenance mode enforcement
CI / quality (push) Waiting to run

This commit is contained in:
MOH
2026-03-07 14:30:09 +01:00
parent 7f4277d1d7
commit 917be15dd5
3 changed files with 5 additions and 152 deletions
-25
View File
@@ -1,25 +0,0 @@
import { NextResponse } from "next/server";
import { getMaintenanceMode } from "@/lib/app-config";
export const dynamic = "force-dynamic";
export async function GET() {
try {
const enabled = await getMaintenanceMode();
return NextResponse.json(
{
enabled,
},
{ status: 200 },
);
} catch {
return NextResponse.json(
{
enabled: false,
},
{ status: 200 },
);
}
}