refactor: allow local shutdown

This commit is contained in:
Carlos Valente
2024-09-18 21:22:47 +02:00
committed by Carlos Valente
parent d8cf1abb37
commit 66083813f9
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -18,6 +18,7 @@ const location = window.location;
const socketProtocol = location.protocol === 'https:' ? 'wss' : 'ws';
export const isProduction = import.meta.env.MODE === 'production';
export const isDev = !isProduction;
export const isLocalhost = location.hostname === 'localhost' || location.hostname === '127.0.0.1';
// resolve port
const STATIC_PORT = 4001;