diff options
| author | Maze Winther <mazewinther@gmail.com> | 2026-03-02 16:53:30 +0100 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2026-03-02 16:53:30 +0100 |
| commit | 9b6a1f79735f123bc3f03baf517f9b76472afb78 (patch) | |
| tree | 01919f9173a1f7b18e63ef431c67ebc5224d37be /apps/web | |
| parent | eee3233c97e96a83280ba230180b321f9e6d0d1a (diff) | |
| download | opencut-9b6a1f79735f123bc3f03baf517f9b76472afb78.tar.gz | |
disable react-scan in prod
Diffstat (limited to 'apps/web')
| -rw-r--r-- | apps/web/src/app/layout.tsx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx index 4deaa127..c2608bd9 100644 --- a/apps/web/src/app/layout.tsx +++ b/apps/web/src/app/layout.tsx @@ -28,11 +28,13 @@ export default function RootLayout({ <html lang="en" suppressHydrationWarning> <head> <BotIdClient protect={protectedRoutes} /> - <Script - src="//unpkg.com/react-scan/dist/auto.global.js" - crossOrigin="anonymous" - strategy="beforeInteractive" - /> + {process.env.NODE_ENV === "development" && ( + <Script + src="//unpkg.com/react-scan/dist/auto.global.js" + crossOrigin="anonymous" + strategy="beforeInteractive" + /> + )} </head> <body className={`${siteFont.className} font-sans antialiased`}> <ThemeProvider |
