mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-25 03:29:51 +01: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'];
|
const devHostStartNames = ['blitzkrieg-', 'localhost'];
|
||||||
|
|
||||||
export default function isDev() {
|
export default function isDev() {
|
||||||
console.log(
|
|
||||||
process.env,
|
|
||||||
typeof window !== 'undefined' && window.location.host,
|
|
||||||
);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
process.env.NODE_ENV === 'development' ||
|
process.env.NODE_ENV === 'development' ||
|
||||||
|
process.env.VERCEL_ENV === 'preview' ||
|
||||||
(typeof window !== 'undefined' &&
|
(typeof window !== 'undefined' &&
|
||||||
devHostStartNames.some((name) => window.location.host.startsWith(name)))
|
devHostStartNames.some((name) => window.location.host.startsWith(name)))
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user