@vercel/microfrontends 0.19.6 → 0.20.0
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.
- package/dist/bin/cli.cjs +1 -1
- package/dist/next/config.cjs +8 -3
- package/dist/next/config.cjs.map +1 -1
- package/dist/next/config.js +8 -3
- package/dist/next/config.js.map +1 -1
- package/package.json +1 -1
package/dist/bin/cli.cjs
CHANGED
|
@@ -29,7 +29,7 @@ var import_commander = require("commander");
|
|
|
29
29
|
// package.json
|
|
30
30
|
var package_default = {
|
|
31
31
|
name: "@vercel/microfrontends",
|
|
32
|
-
version: "0.
|
|
32
|
+
version: "0.20.0",
|
|
33
33
|
private: false,
|
|
34
34
|
description: "Defines configuration and utilities for microfrontends development",
|
|
35
35
|
keywords: [
|
package/dist/next/config.cjs
CHANGED
|
@@ -1709,22 +1709,27 @@ function rewritesMapToArr(rewrites) {
|
|
|
1709
1709
|
}
|
|
1710
1710
|
function transform4(args) {
|
|
1711
1711
|
const { next, app } = args;
|
|
1712
|
+
if (process.env.VERCEL_ENV && process.env.VERCEL_ENV !== "development") {
|
|
1713
|
+
return {
|
|
1714
|
+
next
|
|
1715
|
+
};
|
|
1716
|
+
}
|
|
1712
1717
|
const buildBeforeFiles = () => {
|
|
1713
1718
|
const rewrites = /* @__PURE__ */ new Map();
|
|
1714
1719
|
if (!app.isDefault()) {
|
|
1715
1720
|
rewrites.set(`/${app.getAssetPrefix()}/_next/:path+`, {
|
|
1716
1721
|
destination: {
|
|
1717
|
-
pathname:
|
|
1722
|
+
pathname: "/_next/:path+"
|
|
1718
1723
|
}
|
|
1719
1724
|
});
|
|
1720
1725
|
rewrites.set(`/${app.getAssetPrefix()}/.well-known/vercel/flags`, {
|
|
1721
1726
|
destination: {
|
|
1722
|
-
pathname:
|
|
1727
|
+
pathname: "/.well-known/vercel/flags"
|
|
1723
1728
|
}
|
|
1724
1729
|
});
|
|
1725
1730
|
rewrites.set(`/${app.getAssetPrefix()}/_vercel/:path*`, {
|
|
1726
1731
|
destination: {
|
|
1727
|
-
pathname:
|
|
1732
|
+
pathname: "/_vercel/:path*"
|
|
1728
1733
|
}
|
|
1729
1734
|
});
|
|
1730
1735
|
}
|