Skip to content

Commit f878d3b

Browse files
alexivanovpull[bot]
authored andcommitted
chore: only add Meticulous recorder when running in dev mode (#13950)
1 parent 22bb4cd commit f878d3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/src/index.tsx

Lines changed: 3 additions & 3 deletions
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)