Files
light-code/server/src/index.ts
2025-10-20 05:45:19 +08:00

19 lines
401 B
TypeScript

import { proxyRoute, initProxy } from '@kevisual/local-proxy/proxy.ts';
// http://localhost:4005/test/a/index.html
initProxy({
pagesDir: './demo',
watch: true,
home: '/root/light-code-center',
});
import { app } from './app.ts'
import './routes/index.ts'
app.listen(4005, () => {
console.log('Server is running on http://localhost:4005')
})
app.onServerRequest(proxyRoute);
export { app }