Skip to content

Commit b42006b

Browse files
committed
refactor: 调整 web-antd 和 docs 构建 base 路径
- 修改 web-antd 生产环境 VITE_BASE 为 /vue-vben-admin-antd/ - 配置 docs VitePress 生产环境 base 路径为 /vue-vben-admin-antd/docs/
1 parent d627ced commit b42006b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

apps/web-antd/.env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VITE_BASE=/
1+
VITE_BASE=/vue-vben-admin-antd/
22

33
# 接口地址
44
VITE_GLOB_API_URL=https://mock-napi.vben.pro/api

docs/.vitepress/config/shared.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ import { demoPreviewPlugin } from './plugins/demo-preview';
2323
import { search as zhSearch } from './zh.mts';
2424

2525
export const shared = defineConfig({
26+
base:
27+
process.env.NODE_ENV === 'production' ? '/vue-vben-admin-antd/docs/' : '/',
2628
appearance: 'dark',
2729
head: head(),
2830
markdown: {

0 commit comments

Comments
 (0)