web修改
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user