feat: 根据 CNB 环境变量调整助手配置文件的 home 路径
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user