diff --git a/app/api/site/default-locale/route.ts b/app/api/site/default-locale/route.ts index a00c378..ba9f409 100644 --- a/app/api/site/default-locale/route.ts +++ b/app/api/site/default-locale/route.ts @@ -10,6 +10,11 @@ export async function GET() { getMaintenanceMode(), ]); + console.info("api:site:default-locale", { + defaultLocale: settings.defaultLocale, + maintenanceEnabled, + }); + return NextResponse.json( { defaultLocale: settings.defaultLocale, diff --git a/middleware.ts b/middleware.ts index 536a4a3..9af1e6b 100644 --- a/middleware.ts +++ b/middleware.ts @@ -40,6 +40,7 @@ function isComingSoonPath(pathname: string) { async function getSiteRuntimeState(request: NextRequest): Promise { try { + const runtimeStateUrl = new URL("/api/site/default-locale", request.url); const response = await fetch(new URL("/api/site/default-locale", request.url), { headers: { "x-middleware-request": "1", @@ -48,6 +49,10 @@ async function getSiteRuntimeState(request: NextRequest): Promise