Skip to content

Commit 314f5fb

Browse files
committed
only load react-scan in dev
1 parent 187ceb9 commit 314f5fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ services:
1717
# Nodejs process hosts react frontend
1818
nodejs:
1919
image: "${REGISTRY_URL:-}telemetry-vis-software/frontend:latest"
20-
# NOTE: in order for the build to produce a working output, .env.prod file
20+
# NOTE: in order for the build to produce a working output, .env.production
2121
# needs to be present in the build context dir with lcjs license information.
2222
build: ./frontend
2323
expose:

frontend/app/utils/ReactScan.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { JSX, useEffect } from "react";
88
export function ReactScan(): JSX.Element {
99
useEffect(() => {
1010
scan({
11-
enabled: true,
11+
enabled: process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test",
1212
});
1313
}, []);
1414

0 commit comments

Comments
 (0)