feat: remove logging vars

This commit is contained in:
TrèsAbhi committed 2024-02-07 13:45:51 -06:00
1 parent 92bb4af5ec
commit 10799e52ce
1 file changed
+1 -5
+1 -5
View File
@@ -1,13 +1,9 @@
const devHostStartNames = ['blitzkrieg-', 'localhost'];
export default function isDev() {
console.log(
process.env,
typeof window !== 'undefined' && window.location.host,
);
return (
process.env.NODE_ENV === 'development' ||
process.env.VERCEL_ENV === 'preview' ||
(typeof window !== 'undefined' &&
devHostStartNames.some((name) => window.location.host.startsWith(name)))
);