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