更新 .cnb.yml、package.json 和文档,添加新功能和示例代码

This commit is contained in:
xiongxiao
2026-01-19 04:52:14 +08:00
parent 999397611c
commit 9b11ea5138
8 changed files with 213 additions and 20 deletions

14
STATIC.md Normal file
View File

@@ -0,0 +1,14 @@
## 兼容服务器
```ts
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);
```