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 22bb4cd commit f878d3bCopy full SHA for f878d3b
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