disable react-scan in prod

This commit is contained in:
Maze Winther
2026-03-02 16:53:30 +01:00
parent eee3233c97
commit 9b6a1f7973
+7 -5
View File
@@ -28,11 +28,13 @@ export default function RootLayout({
<html lang="en" suppressHydrationWarning> <html lang="en" suppressHydrationWarning>
<head> <head>
<BotIdClient protect={protectedRoutes} /> <BotIdClient protect={protectedRoutes} />
<Script {process.env.NODE_ENV === "development" && (
src="//unpkg.com/react-scan/dist/auto.global.js" <Script
crossOrigin="anonymous" src="//unpkg.com/react-scan/dist/auto.global.js"
strategy="beforeInteractive" crossOrigin="anonymous"
/> strategy="beforeInteractive"
/>
)}
</head> </head>
<body className={`${siteFont.className} font-sans antialiased`}> <body className={`${siteFont.className} font-sans antialiased`}>
<ThemeProvider <ThemeProvider