refactor: add env openapi default value
This commit is contained in:
parent
c34b0124fa
commit
685d05074b
@ -10,7 +10,7 @@ export const env = {
|
|||||||
: process.env.JWT_SECRET,
|
: process.env.JWT_SECRET,
|
||||||
port: Number(process.env.PORT || 12345),
|
port: Number(process.env.PORT || 12345),
|
||||||
allowRegister: checkEnvTrusty(process.env.ALLOW_REGISTER),
|
allowRegister: checkEnvTrusty(process.env.ALLOW_REGISTER),
|
||||||
allowOpenapi: checkEnvTrusty(process.env.ALLOW_OPENAPI),
|
allowOpenapi: checkEnvTrusty(process.env.ALLOW_OPENAPI ?? 'true'),
|
||||||
websiteId: process.env.WEBSITE_ID,
|
websiteId: process.env.WEBSITE_ID,
|
||||||
sandboxMemoryLimit: process.env.SANDBOX_MEMORY_LIMIT
|
sandboxMemoryLimit: process.env.SANDBOX_MEMORY_LIMIT
|
||||||
? Number(process.env.SANDBOX_MEMORY_LIMIT)
|
? Number(process.env.SANDBOX_MEMORY_LIMIT)
|
||||||
|
Loading…
Reference in New Issue
Block a user