From 685d05074b9a994081eade85cceb5f3b001c74df Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Mon, 8 Jul 2024 00:29:50 +0800 Subject: [PATCH] refactor: add env openapi default value --- src/server/utils/env.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/utils/env.ts b/src/server/utils/env.ts index c981a39..49d7f4d 100644 --- a/src/server/utils/env.ts +++ b/src/server/utils/env.ts @@ -10,7 +10,7 @@ export const env = { : process.env.JWT_SECRET, port: Number(process.env.PORT || 12345), allowRegister: checkEnvTrusty(process.env.ALLOW_REGISTER), - allowOpenapi: checkEnvTrusty(process.env.ALLOW_OPENAPI), + allowOpenapi: checkEnvTrusty(process.env.ALLOW_OPENAPI ?? 'true'), websiteId: process.env.WEBSITE_ID, sandboxMemoryLimit: process.env.SANDBOX_MEMORY_LIMIT ? Number(process.env.SANDBOX_MEMORY_LIMIT)