Move env-based config to a separate file
parent
7df920534c
commit
4bee0454e6
@ -0,0 +1,17 @@
|
||||
export const SEALIOUS_SANITY = Boolean(process.env.SEALIOUS_SANITY);
|
||||
export const PORT = process.env.SEALIOUS_PORT
|
||||
? parseInt(process.env.SEALIOUS_PORT)
|
||||
: 8080;
|
||||
export const BASE_URL = process.env.SEALIOUS_BASE_URL || `http://localhost:${PORT}`;
|
||||
export const MONGO_PORT = process.env.SEALIOUS_MONGO_PORT
|
||||
? parseInt(process.env.SEALIOUS_MONGO_PORT)
|
||||
: 20747;
|
||||
export const MONGO_HOST = process.env.SEALIOUS_MONGO_HOST || "127.0.0.1";
|
||||
export const MAILCATCHER_HOST = process.env.SEALIOUS_MAILCATCHER_HOST || "127.0.0.1";
|
||||
export const MAILCATCHER_SMTP_PORT = parseInt(
|
||||
process.env.SEALIOUS_MAILCATCHER_SMTP_PORT || "1026"
|
||||
);
|
||||
export const MAILCATCHER_API_PORT = parseInt(
|
||||
process.env.SEALIOUS_MAILCATCHER_API_PORT || "1082"
|
||||
);
|
||||
export const MAILER = process.env.SEALIOUS_MAILER;
|
Loading…
Reference in New Issue