This commit is contained in:
2025-02-27 00:08:22 +08:00
parent 9eb68a69d7
commit 65ee66d6b4
7 changed files with 56 additions and 36 deletions

8
src/dev.ts Normal file
View File

@@ -0,0 +1,8 @@
import { useConfig } from '@kevisual/use-config';
import { app } from './index.ts';
const config = useConfig();
app.listen(config.port, () => {
console.log(`server is running at http://localhost:${config.port}`);
});

View File

@@ -1,8 +1,4 @@
import { app } from './app.ts';
import { useConfig } from '@kevisual/use-config';
import './demo-route.ts';
const config = useConfig();
app.listen(config.port, () => {
console.log(`server is running at http://localhost:${config.port}`);
});
export { app };