fix: 调整重连逻辑以增加每次连接尝试的延迟时间;更新 mvFile 方法以支持 'app-file' 类型

This commit is contained in:
2026-01-21 15:56:28 +08:00
parent 3f899dbd5f
commit a911334459
3 changed files with 10 additions and 7 deletions

View File

@@ -4,7 +4,8 @@ import { runCode } from '../../module/light-code/run.ts'
// http://localhost:4005/api/router?path=call
app.route({
path: 'call',
path: 'light-code',
key: 'call',
// middleware: ['auth']
}).define(async (ctx) => {
const filename = ctx.query?.filename || 'root/light-code-demo/demo-router.ts'