env.gameEngineManualStart
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user