From 2afa6bcb4c2d192c45e18e8e6037ef88e6b0ce80 Mon Sep 17 00:00:00 2001 From: liuyi Date: Sun, 8 Jun 2025 14:27:50 +0800 Subject: [PATCH] add config module --- src/config/app.config.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/config/app.config.ts b/src/config/app.config.ts index d17a997..794ee37 100644 --- a/src/config/app.config.ts +++ b/src/config/app.config.ts @@ -3,7 +3,6 @@ import { toNumber } from 'lodash'; import { createAppConfig } from '@/modules/core/config'; export const app = createAppConfig((configure) => ({ - port: configure.env.get('APP_PORT', (v) => toNumber(v), 3099), - prefix: 'api', - }); -}); + port: configure.env.get('APP_PORT', (v) => toNumber(v), 3099), + prefix: 'api', +}));