feat: 添加工作空间保持存活功能,更新相关依赖和配置

This commit is contained in:
2026-01-30 23:32:40 +08:00
parent 972d68b87e
commit 0d17d56628
12 changed files with 394 additions and 29 deletions

View File

@@ -1,4 +1,4 @@
import { app, appId } from '../app.ts';
import { app } from '../app.ts';
import './cnb-env/check.ts'
import './repo/index.ts'
import './workspace/index.ts'
@@ -31,7 +31,7 @@ if (!app.hasRoute('auth')) {
path: 'auth',
}).define(async (ctx) => {
// ctx.body = 'Auth Route';
if (checkAppId(ctx, appId)) {
if (checkAppId(ctx, app.appId)) {
return;
}
}).addTo(app);
@@ -42,7 +42,7 @@ if (!app.hasRoute('auth')) {
middleware: ['auth'],
}).define(async (ctx) => {
// ctx.body = 'Admin Auth Route';
if (checkAppId(ctx, appId)) {
if (checkAppId(ctx, app.appId)) {
return;
}
}).addTo(app);