diff --git a/src/core/blitzkrieg/isDev.ts b/src/core/blitzkrieg/isDev.ts index 7ab87d582..cc4717fa4 100644 --- a/src/core/blitzkrieg/isDev.ts +++ b/src/core/blitzkrieg/isDev.ts @@ -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))) );