refactor: stabilise actionHandler (#683)

This commit is contained in:
Carlos Valente
2023-12-30 21:13:51 +01:00
committed by GitHub
parent 3998b8927d
commit 5409c0ac6e
3 changed files with 111 additions and 88 deletions
@@ -13,6 +13,7 @@ export const RUNTIME = ['runtimeStore'];
const location = window.location;
const socketProtocol = location.protocol === 'https:' ? 'wss' : 'ws';
export const isProduction = import.meta.env.MODE === 'production';
export const isDev = !isProduction;
const STATIC_PORT = 4001;
export const serverPort = isProduction ? location.port : STATIC_PORT;