mirror of
https://github.com/certd/certd.git
synced 2026-05-01 02:17:27 +08:00
perf: 支持反向代理增加contextPath路径
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user