diff --git a/host/nuxt.config.ts b/host/nuxt.config.ts index 1f3a291..51f9a69 100644 --- a/host/nuxt.config.ts +++ b/host/nuxt.config.ts @@ -14,11 +14,17 @@ export default defineNuxtConfig({ vite: { server: { proxy: { - "^/node_modules/.*": { - target: "http://localhost:3000", + // "^/node_modules/.*": { + // target: "http://localhost:3000", + // changeOrigin: true, + // rewrite: (path) => + // path.replace(/^\/node_modules\//, "/_nuxt/node_modules/") + // }, + "^/remote/*": { + target: "http://localhost:3005", changeOrigin: true, rewrite: (path) => - path.replace(/^\/node_modules\//, "/_nuxt/node_modules/") + path.replace(/^\/remote\//, "") } } }, diff --git a/host/package.json b/host/package.json index 6cc4ed3..5517d7a 100644 --- a/host/package.json +++ b/host/package.json @@ -4,7 +4,7 @@ "type": "module", "scripts": { "build": "nuxt build", - "dev": " nuxt dev", + "dev": " nuxt dev --host", "prebuild": "npm run clean", "pregenerate": "npm run clean", "generate": "nuxt generate", @@ -15,15 +15,15 @@ "serve": "serve .output/public -p 3000 --single" }, "dependencies": { - "@pinia/nuxt": "^0.10.1", - "nuxt": "^3.15.4", - "pinia": "^2.3.0", + "@pinia/nuxt": "^0.11.2", + "nuxt": "^4.0.3", + "pinia": "^3.0.3", "vue": "^3.5.13" }, "devDependencies": { - "@originjs/vite-plugin-federation": "1.3.9", + "@originjs/vite-plugin-federation": "^1.4.1", "rimraf": "6", "serve": "~14.2.4", - "vite-plugin-top-level-await": "~1.5.0" + "vite-plugin-top-level-await": "^1.6.0" } } diff --git a/host/pages/contact/[...all].vue b/host/pages/contact/[...all].vue index dd2d71c..cb76233 100644 --- a/host/pages/contact/[...all].vue +++ b/host/pages/contact/[...all].vue @@ -4,7 +4,7 @@
diff --git a/remote/components/RemoteContactRouter.vue b/remote/components/RemoteContactRouter.vue index a6d7b8f..86ca8ef 100644 --- a/remote/components/RemoteContactRouter.vue +++ b/remote/components/RemoteContactRouter.vue @@ -1,5 +1,6 @@