feat: 根据 CNB 环境变量调整助手配置文件的 home 路径

This commit is contained in:
2026-02-24 18:51:16 +08:00
parent 6795cef3d5
commit d3104bd5a5

View File

@@ -380,6 +380,7 @@ export class AssistantConfig {
}
protected getDefaultInitAssistantConfig() {
const id = randomId();
const isCNB = !!useKey('CNB');
return {
app: {
url: 'https://kevisual.cn',
@@ -387,7 +388,7 @@ export class AssistantConfig {
},
description: '助手配置文件',
docs: "https://kevisual.cn/root/cli/docs/",
home: '/root/home',
home: isCNB ? '/root/cli-center' : '/root/home',
proxy: [],
share: {
enabled: true,