mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-24 17:38:40 -06:00
fix: environment variables with optional #1
This commit is contained in:
parent
fe4a439fde
commit
0b40583fa8
@ -270,7 +270,7 @@ export class ConfigService {
|
|||||||
},
|
},
|
||||||
CORS: {
|
CORS: {
|
||||||
ORIGIN: process.env.CORS_ORIGIN?.split(',') || ['*'],
|
ORIGIN: process.env.CORS_ORIGIN?.split(',') || ['*'],
|
||||||
METHODS: (process.env.CORS_METHODS?.split(',') as HttpMethods[]) || ['POST', 'GET', 'PUT', 'DELETE'],
|
METHODS: (process.env.CORS_METHODS?.split(',') as HttpMethods[]) || ['POST', 'GET', 'PUT', 'DELETE'] as HttpMethods[],
|
||||||
CREDENTIALS: process.env?.CORS_CREDENTIALS === 'true',
|
CREDENTIALS: process.env?.CORS_CREDENTIALS === 'true',
|
||||||
},
|
},
|
||||||
SSL_CONF: {
|
SSL_CONF: {
|
||||||
@ -364,7 +364,7 @@ export class ConfigService {
|
|||||||
'DARK',
|
'DARK',
|
||||||
'WEBHOOKS',
|
'WEBHOOKS',
|
||||||
'WEBSOCKET',
|
'WEBSOCKET',
|
||||||
],
|
] as LogLevel[],
|
||||||
COLOR: process.env?.LOG_COLOR === 'true',
|
COLOR: process.env?.LOG_COLOR === 'true',
|
||||||
BAILEYS: (process.env?.LOG_BAILEYS as LogBaileys) || 'error',
|
BAILEYS: (process.env?.LOG_BAILEYS as LogBaileys) || 'error',
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user