@vercel/microfrontends 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1675,7 +1675,14 @@ function transform4(args) {
1675
1675
  source: "/:path*",
1676
1676
  destination: `http://localhost:${microfrontend.getLocalProxyPort()}/:path*`,
1677
1677
  permanent: false,
1678
- missing: [{ type: "header", key: "x-vercel-mfe-local-proxy-origin" }]
1678
+ missing: [
1679
+ { type: "header", key: "x-vercel-mfe-local-proxy-origin" },
1680
+ {
1681
+ type: "host",
1682
+ value: `localhost:${microfrontend.getLocalProxyPort()}`
1683
+ // if it's already on the host, we don't need to redirect
1684
+ }
1685
+ ]
1679
1686
  }
1680
1687
  ];
1681
1688
  if (next.redirects && typeof next.redirects === "function") {