fix(*): 平台稳定性 - 修复会话隔离、运行时缓存与部署镜像更新链路
This commit is contained in:
1 parent
88abdd1b75
commit
e77c26d2b0
32 files changed
+788
-116
No files matched your search
@@ -6,6 +6,8 @@ import { defineConfig } from "vite";
|
||||
|
||||
const webDir = dirname(fileURLToPath(import.meta.url));
|
||||
const appVersion = process.env.CANVAS_BUILD_VERSION?.trim() || readFileSync(resolve(webDir, "../VERSION"), "utf8").trim();
|
||||
const buildCommit = process.env.CANVAS_BUILD_COMMIT?.trim() || process.env.VITE_BUILD_COMMIT?.trim() || "unknown";
|
||||
const buildTime = process.env.CANVAS_BUILD_TIME?.trim() || process.env.VITE_BUILD_TIME?.trim() || "unknown";
|
||||
const appChangelog = readFileSync(resolve(webDir, "../CHANGELOG.md"), "utf8");
|
||||
const apiProxyTarget = process.env.VITE_API_PROXY_TARGET?.trim() || "http://127.0.0.1:8080";
|
||||
|
||||
@@ -15,6 +17,8 @@ export default defineConfig({
|
||||
__APP_VERSION__: JSON.stringify(appVersion),
|
||||
__APP_CHANGELOG__: JSON.stringify(appChangelog),
|
||||
"import.meta.env.VITE_APP_VERSION": JSON.stringify(appVersion),
|
||||
"import.meta.env.VITE_BUILD_COMMIT": JSON.stringify(buildCommit),
|
||||
"import.meta.env.VITE_BUILD_TIME": JSON.stringify(buildTime),
|
||||
},
|
||||
server: {
|
||||
proxy: {
|
||||
|
||||
Reference in new issue
Block a user