21 lines
394 B
TypeScript
21 lines
394 B
TypeScript
import { NextResponse } from "next/server";
|
|
|
|
import { getSiteSettings } from "@/lib/app-config";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
export async function GET() {
|
|
const settings = await getSiteSettings();
|
|
|
|
return NextResponse.json(
|
|
{
|
|
defaultLocale: settings.defaultLocale,
|
|
},
|
|
{
|
|
headers: {
|
|
"Cache-Control": "no-store, max-age=0",
|
|
},
|
|
},
|
|
);
|
|
}
|