Fix for webviews

This commit is contained in:
Linus Flood
2024-10-17 12:50:32 +02:00
parent 582c852377
commit 42640abb2b
3 changed files with 20 additions and 10 deletions

View File

@@ -7,6 +7,7 @@ import TrpcProvider from "@/lib/trpc/Provider"
import AdobeSDKScript from "@/components/Current/AdobeSDKScript"
import GTMScript from "@/components/Current/GTMScript"
import RouterTracking from "@/components/TrackingSDK/RouterTracking"
import { getIntl } from "@/i18n"
import ServerIntlProvider from "@/i18n/Provider"
import { setLang } from "@/i18n/serverContext"
@@ -39,7 +40,9 @@ export default async function RootLayout({
</head>
<body className={styles.layout}>
<ServerIntlProvider intl={{ defaultLocale, locale, messages }}>
<TrpcProvider>{children}</TrpcProvider>
<TrpcProvider>
<RouterTracking>{children}</RouterTracking>
</TrpcProvider>
</ServerIntlProvider>
</body>
</html>