12 lines
398 B
TypeScript
12 lines
398 B
TypeScript
import 'dotenv/config';
|
|
import { must } from '@sammo/util';
|
|
|
|
export const serverConfig = {
|
|
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;
|