项目打包配置修改

This commit is contained in:
付民康
2025-03-14 09:11:46 +08:00
parent e52022c004
commit 40bed1ef8c
3 changed files with 6 additions and 1 deletions

View File

@@ -34,3 +34,5 @@ VITE_USER_CENTER_HOST = 'https://test.gitcode.net/child/user-center/'
# ai-copilot 子应用
VITE_COPILOT_HOST = 'https://test.gitcode.net/child/aichat-app/'
VITE_BASE_URL=/

View File

@@ -36,3 +36,5 @@ VITE_USER_CENTER_HOST = 'https://usercenter-app.gitcode.com'
# ai-copilot 子应用
VITE_COPILOT_HOST = 'https://copilot-app.gitcode.com'
VITE_BASE_URL=/openRepoPortal/

View File

@@ -11,8 +11,9 @@ const fs = require('node:fs')
export default (config: any) => {
const env = loadEnv(config.mode, process.cwd());
console.log(env)
return defineConfig({
base: '/openRepoPortal/', // 确保与 Nginx 配置匹配
base: env.VITE_BASE_URL,
plugins: [
vue({
template: {