We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 554c4ab commit dba2387Copy full SHA for dba2387
site/src/index.tsx
@@ -31,9 +31,9 @@ async function startApp() {
31
32
function isInternal() {
33
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
+ process.env.NODE_ENV === "development" &&
+ (window.location.hostname.indexOf("localhost") > -1 ||
+ window.location.hostname.indexOf("127.0.0.1") > -1)
37
);
38
}
39
0 commit comments