chore: only add Meticulous recorder when running in dev mode (#13950)

This commit is contained in:
Alex Ivanov
2024-07-19 18:47:38 +01:00
committed by GitHub
parent 554c4ab1eb
commit dba23872eb

View File

@ -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)
);
}