项目打包配置修改
This commit is contained in:
@@ -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=/
|
||||
|
||||
@@ -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/
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user