disable react-scan in prod

This commit is contained in:
Maze Winther
2026-03-02 16:53:30 +01:00
parent eee3233c97
commit 9b6a1f7973
+2
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} />
{process.env.NODE_ENV === "development" && (
<Script <Script
src="//unpkg.com/react-scan/dist/auto.global.js" src="//unpkg.com/react-scan/dist/auto.global.js"
crossOrigin="anonymous" crossOrigin="anonymous"
strategy="beforeInteractive" strategy="beforeInteractive"
/> />
)}
</head> </head>
<body className={`${siteFont.className} font-sans antialiased`}> <body className={`${siteFont.className} font-sans antialiased`}>
<ThemeProvider <ThemeProvider