perf router template

This commit is contained in:
2025-04-07 14:36:52 +08:00
parent 117be3062d
commit 6807388ab5
18 changed files with 996 additions and 464 deletions

View File

@@ -1,10 +1,9 @@
// 单应用实例启动
import { useConfig } from '@kevisual/use-config/env';
import { app } from './index.ts';
const config = useConfig();
app.listen(config.port, () => {
console.log(`server is running at http://localhost:${config.port}`);
const port = config.PORT || 4000;
app.listen(port, () => {
console.log(`server is running at http://localhost:${port}`);
});