web修改

This commit is contained in:
2026-01-02 18:22:09 +08:00
parent 75877db4f9
commit ec61f134a8
11 changed files with 246 additions and 23 deletions

View File

@@ -10,9 +10,9 @@ const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)
// 开发环境 shared 模块地址
const DEV_SHARED_URL = 'https://localhost:7000/shared/mf-manifest.json'
const DEV_SHARED_URL = 'https://localhost:7000/shared/remoteEntry.js'
// 生产环境使用相对路径,通过 Nginx 代理访问
const PROD_SHARED_URL = '/shared/mf-manifest.json'
const PROD_SHARED_URL = '/shared/remoteEntry.js'
export default defineConfig(({ mode }) => {
const isDev = mode === 'development'