Skip to content

A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.

fix: react-scan in dev only

dextmorgnfe4bc1aac62d
diff --git a/flowsint-web/src/app/layout.tsx b/flowsint-web/src/app/layout.tsx
index a1cc4e8d..24043ae8 100644
--- a/flowsint-web/src/app/layout.tsx
+++ b/flowsint-web/src/app/layout.tsx
@@ -36,10 +36,12 @@ export default function RootLayout({
return (
<html suppressHydrationWarning lang="en">
<head>
- <script
- crossOrigin="anonymous"
- src="//unpkg.com/react-scan/dist/auto.global.js"
- />
+ {process.env.NODE_ENV === "development" && (
+ <script
+ crossOrigin="anonymous"
+ src="//unpkg.com/react-scan/dist/auto.global.js"
+ />
+ )}
</head>
<body
className={clsx(