Files
MOH 623b492787
CI / quality (push) Waiting to run
Remove locale debugging logs
2026-03-15 08:36:43 +01:00

25 lines
512 B
TypeScript

import { NextResponse } from "next/server";
import { getMaintenanceMode, getSiteSettings } from "@/lib/app-config";
export const dynamic = "force-dynamic";
export async function GET() {
const [settings, maintenanceEnabled] = await Promise.all([
getSiteSettings(),
getMaintenanceMode(),
]);
return NextResponse.json(
{
defaultLocale: settings.defaultLocale,
maintenanceEnabled,
},
{
headers: {
"Cache-Control": "no-store, max-age=0",
},
},
);
}