fix: there can only ever be one root layout, and it should always contains html and body tags

This commit is contained in:
Simon Emanuelsson
2025-04-01 14:30:56 +02:00
parent e45fea6de4
commit d513184be4
6 changed files with 16 additions and 20 deletions

View File

@@ -19,6 +19,7 @@ import GTMScript from "@/components/TrackingSDK/GTMScript"
import RouterTracking from "@/components/TrackingSDK/RouterTracking"
import { getIntl } from "@/i18n"
import ServerIntlProvider from "@/i18n/Provider"
import { setLang } from "@/i18n/serverContext"
import type { LangParams, LayoutArgs } from "@/types/params"
@@ -29,6 +30,7 @@ export default async function RootLayout({
if (!env.SAS_ENABLED) {
return null
}
setLang(params.lang)
const { defaultLocale, locale, messages } = await getIntl()