feat: 添加环境变量配置,更新云端存储和授权服务器的默认设置

This commit is contained in:
SunWuyuan
2025-11-01 21:08:41 +08:00
parent 6bfd5fdf0e
commit a7ff0e5714
6 changed files with 16 additions and 6 deletions
+2 -2
View File
@@ -68,7 +68,7 @@ const SETTINGS_STORAGE_KEY = "Classworks_settings";
// 新增: Classworks云端存储的默认设置
const classworksCloudDefaults = {
"server.domain": "https://kv.wuyuan.dev",
"server.domain": import.meta.env.VITE_DEFAULT_KV_SERVER || "https://kv.wuyuan.dev",
//"server.domain": "http://localhost:3030",
"server.siteKey": "",
};
@@ -206,7 +206,7 @@ const settingsDefinitions = {
},
"server.authDomain": {
type: "string",
default: "https://kv.houlang.cloud",
default: import.meta.env.VITE_DEFAULT_AUTH_SERVER || "https://kv.houlang.cloud",
description: "授权服务器域名",
icon: "mdi-shield-account",
validate: (value) => {