perf: 支持反向代理增加contextPath路径

This commit is contained in:
xiaojunnuo
2025-04-25 18:04:59 +08:00
parent b3468cf7f2
commit 0088929622
11 changed files with 21 additions and 22 deletions
+3 -2
View File
@@ -21,9 +21,9 @@ export default ({ command, mode }) => {
const env = loadEnv(mode, process.cwd());
const devServerFs: any = {};
const devAlias: any[] = [];
const base = "/";
const base = "./";
// if (mode.startsWith("dev")) {
// base = "/dev";
// base = "./";
// }
return {
base: base,
@@ -36,6 +36,7 @@ export default ({ command, mode }) => {
data: {
title: env.VITE_APP_TITLE,
projectPath: env.VITE_APP_PROJECT_PATH,
version: env.VITE_APP_VERSION,
},
},
}),