Skip to content

Commit dba2387

Browse files
authored
chore: only add Meticulous recorder when running in dev mode (#13950)
1 parent 554c4ab commit dba2387

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/src/index.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ async function startApp() {
3131

3232
function isInternal() {
3333
return (
34-
window.location.hostname.indexOf("dev.coder.com") > -1 ||
35-
window.location.hostname.indexOf("localhost") > -1 ||
36-
window.location.hostname.indexOf("127.0.0.1") > -1
34+
process.env.NODE_ENV === "development" &&
35+
(window.location.hostname.indexOf("localhost") > -1 ||
36+
window.location.hostname.indexOf("127.0.0.1") > -1)
3737
);
3838
}
3939

0 commit comments

Comments
 (0)