This commit is contained in:
2023-08-18 15:47:10 +00:00
parent 60848987eb
commit 199938f2b2
12 changed files with 95 additions and 21 deletions
+9
View File
@@ -0,0 +1,9 @@
import 'dotenv/config';
import { unwrap } from './util/unwrap.js';
export const ownConfig = {
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)),
};