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", }, }, ); }