chore: remote url from env
This commit is contained in:
@@ -0,0 +1 @@
|
||||
NUXT_MFE_APP1_HOST=http://localhost:3001
|
||||
+3
-1
@@ -2,6 +2,8 @@ import { defineNuxtConfig } from "nuxt/config"
|
||||
import federation from "@originjs/vite-plugin-federation"
|
||||
import topLevelAwait from "vite-plugin-top-level-await"
|
||||
|
||||
const MFE_HOST = process.env.NUXT_MFE_APP1_HOST
|
||||
|
||||
export default defineNuxtConfig({
|
||||
compatibilityDate: "2024-04-03",
|
||||
devtools: { enabled: false },
|
||||
@@ -29,7 +31,7 @@ export default defineNuxtConfig({
|
||||
federation({
|
||||
name: "host-app",
|
||||
remotes: {
|
||||
remote: "http://localhost:3001/_nuxt/remoteEntry.js"
|
||||
remote: `${MFE_HOST}/_nuxt/remoteEntry.js`
|
||||
},
|
||||
shared: ["vue"]
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user