feat: clear app.config.json5

This commit is contained in:
2025-03-26 00:55:03 +08:00
parent 501a92eb88
commit 7d93f0eef3
15 changed files with 356 additions and 426 deletions

13
src/modules/config.ts Normal file
View File

@@ -0,0 +1,13 @@
import path from 'path';
import dotenv from 'dotenv';
const envFiles = [
path.resolve(process.cwd(), '.env.dev'),
path.resolve(process.cwd(), '.env'),
];
dotenv.config({
path: envFiles,
});
export const config = process.env;
export const port = config.PORT || 4005;