diff --git a/site/src/index.tsx b/site/src/index.tsx index 489d747a3c0a6..d34f936584a97 100644 --- a/site/src/index.tsx +++ b/site/src/index.tsx @@ -31,9 +31,9 @@ async function startApp() { function isInternal() { return ( - window.location.hostname.indexOf("dev.coder.com") > -1 || - window.location.hostname.indexOf("localhost") > -1 || - 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) ); }