env.gameEngineManualStart

This commit is contained in:
2024-03-14 14:50:08 +00:00
parent 533400b1b9
commit 3e4129c3f1
3 changed files with 21 additions and 8 deletions
+8 -6
View File
@@ -1,9 +1,11 @@
import 'dotenv/config';
import { unwrap } from '@sammo/util';
import { must } from '@sammo/util';
export const serverConfig = {
sessionSecret: unwrap(process.env.SESSION_SECRET),
port: Number(unwrap(process.env.SERVER_PORT)),
gatewayHost: unwrap(process.env.GATEWAY_HOST),
gatewayPort: Number(unwrap(process.env.GATEWAY_PORT)),
};
sessionSecret: must(process.env.SESSION_SECRET),
port: Number(must(process.env.SERVER_PORT)),
gatewayHost: must(process.env.GATEWAY_HOST),
gatewayPort: Number(must(process.env.GATEWAY_PORT)),
gameEngineManualStart: Boolean(Number(process.env.GAME_ENGINE_MANUAL_START??'0'))
} as const;