fix(env/docs): 修正Vite和Vitepress的base路径配置
修复Vite和Vitepress的base路径配置不一致问题,确保部署路径统一
This commit is contained in:
parent
0c95957493
commit
fa40a7d27b
@ -7,7 +7,7 @@ const buildTime = dayjs().format('YYYY-MM-DD HH:mm:ss')
|
||||
// https://vitepress.dev/reference/site-config
|
||||
export default defineConfig({
|
||||
lang: 'zh-CN',
|
||||
base: '/',
|
||||
base: '/unibest/',
|
||||
title: 'unibest 官方文档',
|
||||
description: '最好用的 uniapp 开发模板',
|
||||
lastUpdated: true,
|
||||
|
2
env/.env
vendored
2
env/.env
vendored
@ -5,7 +5,7 @@ VITE_UNI_APPID = 'H57F2ACE4'
|
||||
VITE_WX_APPID = 'wxa2abb91f64032a2b'
|
||||
|
||||
# h5部署网站的base,配置到 manifest.config.ts 里的 h5.router.base
|
||||
VITE_APP_PUBLIC_BASE=/unibest/
|
||||
VITE_APP_PUBLIC_BASE=/
|
||||
|
||||
VITE_SERVER_BASEURL = 'https://ukw0y1.laf.run'
|
||||
VITE_UPLOAD_BASEURL = 'https://ukw0y1.laf.run/upload'
|
||||
|
Loading…
x
Reference in New Issue
Block a user