We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eee3233 commit 9b6a1f7Copy full SHA for 9b6a1f7
1 file changed
apps/web/src/app/layout.tsx
@@ -28,11 +28,13 @@ export default function RootLayout({
28
<html lang="en" suppressHydrationWarning>
29
<head>
30
<BotIdClient protect={protectedRoutes} />
31
- <Script
32
- src="//unpkg.com/react-scan/dist/auto.global.js"
33
- crossOrigin="anonymous"
34
- strategy="beforeInteractive"
35
- />
+ {process.env.NODE_ENV === "development" && (
+ <Script
+ src="//unpkg.com/react-scan/dist/auto.global.js"
+ crossOrigin="anonymous"
+ strategy="beforeInteractive"
36
+ />
37
+ )}
38
</head>
39
<body className={`${siteFont.className} font-sans antialiased`}>
40
<ThemeProvider
0 commit comments