mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
fix: dev
This commit is contained in:
1 parent
da50b5c8c8
commit
aec96d70d2
1 file changed
+7
@@ -14,6 +14,13 @@ const devHostStartNames = [
|
||||
];
|
||||
|
||||
export default function isDev() {
|
||||
console.log(
|
||||
process.env.NODE_ENV === 'development',
|
||||
process.env.VERCEL_ENV === 'preview',
|
||||
typeof window !== 'undefined' &&
|
||||
devHostStartNames.some((name) => window.location.host.startsWith(name)),
|
||||
);
|
||||
|
||||
if (process.env.NODE_ENV === 'production') return false;
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user