perf router template
This commit is contained in:
@@ -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}`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user