This commit is contained in:
TrèsAbhi committed 2024-07-22 12:01:47 -05:00
1 parent da50b5c8c8
commit aec96d70d2
1 file changed
+7
+7
View File
@@ -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 (