feat: use dev definitions on localhost

This commit is contained in:
TrèsAbhi committed 2024-01-21 17:57:40 -06:00
1 parent c04192e15e
commit 5168fb4098
1 file changed
+3 -1
+3 -1
View File
@@ -1,7 +1,9 @@
const devHostStartNames = ['blitzkrieg-git', 'localhost'];
export default function isDev() { export default function isDev() {
return ( return (
process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'development' ||
(typeof window !== 'undefined' && (typeof window !== 'undefined' &&
window.location.host.startsWith('blitzkrieg-git')) devHostStartNames.some((name) => window.location.host.startsWith(name)))
); );
} }