Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c88e416 commit a9f1c45Copy full SHA for a9f1c45
site/src/index.tsx
@@ -31,9 +31,10 @@ 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
}
40
0 commit comments