feat: 添加工作空间保持存活功能,更新相关依赖和配置
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user