add introduce

This commit is contained in:
熊潇 2025-07-26 20:38:49 +08:00
parent 187900ad55
commit e8794912b6

View File

@ -20,3 +20,17 @@ app
})
.addTo(app);
```
## 兼容服务器
```
import { App } from '@kevisual/router';
const app = new App();
app.listen(4002);
import { proxyRoute, initProxy } from '@kevisual/local-proxy/proxy.ts';
initProxy({
pagesDir: './demo',
watch: true,
});
app.onServerRequest(proxyRoute);
```