mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 03:07:04 +02:00
feat: remove logging vars
This commit is contained in:
1 parent
92bb4af5ec
commit
10799e52ce
1 file changed
+1
-5
@@ -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)))
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user