feat: 根据 CNB 环境变量调整助手配置文件的 home 路径
This commit is contained in:
@@ -380,6 +380,7 @@ export class AssistantConfig {
|
|||||||
}
|
}
|
||||||
protected getDefaultInitAssistantConfig() {
|
protected getDefaultInitAssistantConfig() {
|
||||||
const id = randomId();
|
const id = randomId();
|
||||||
|
const isCNB = !!useKey('CNB');
|
||||||
return {
|
return {
|
||||||
app: {
|
app: {
|
||||||
url: 'https://kevisual.cn',
|
url: 'https://kevisual.cn',
|
||||||
@@ -387,7 +388,7 @@ export class AssistantConfig {
|
|||||||
},
|
},
|
||||||
description: '助手配置文件',
|
description: '助手配置文件',
|
||||||
docs: "https://kevisual.cn/root/cli/docs/",
|
docs: "https://kevisual.cn/root/cli/docs/",
|
||||||
home: '/root/home',
|
home: isCNB ? '/root/cli-center' : '/root/home',
|
||||||
proxy: [],
|
proxy: [],
|
||||||
share: {
|
share: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user