@vercel/microfrontends 0.12.0 → 0.12.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.
@@ -491,6 +491,9 @@ var DefaultApplication = class extends Application {
491
491
  this.default = true;
492
492
  this.production = new Host(app.production);
493
493
  }
494
+ getAssetPrefix() {
495
+ return "";
496
+ }
494
497
  };
495
498
  var ChildApplication = class extends Application {
496
499
  constructor(name, {
@@ -1687,10 +1690,13 @@ function getDomainFromEnvironment({
1687
1690
  `Missing related microfrontends project information for application "${app.name}"`
1688
1691
  );
1689
1692
  }
1690
- if (target === "preview" && vercelProject.deploymentAlias) {
1691
- return vercelProject.deploymentAlias;
1693
+ const domain = target === "preview" && vercelProject.deploymentAlias ? vercelProject.deploymentAlias : vercelProject.productionHost;
1694
+ if (!domain) {
1695
+ throw new Error(
1696
+ `Missing domain for target "${target}" in application "${app.name}"`
1697
+ );
1692
1698
  }
1693
- return vercelProject.productionHost;
1699
+ return domain.startsWith("https://") ? domain : `https://${domain}`;
1694
1700
  }
1695
1701
 
1696
1702
  // src/routing-v2/get-domain-for-current-environment.ts
@@ -1719,10 +1725,10 @@ function getCurrentEnvironment() {
1719
1725
  }
1720
1726
  return { group: "custom", name: process.env.VERCEL_ENV };
1721
1727
  }
1722
- function getDomainForCurrentEnvironment(config, appName) {
1728
+ function getDomainForCurrentEnvironment(config, appName, opts = {}) {
1723
1729
  var _a;
1724
1730
  const app = config.getApplication(appName);
1725
- if ((_a = app.overrides) == null ? void 0 : _a.environment) {
1731
+ if (!opts.ignoreOverride && ((_a = app.overrides) == null ? void 0 : _a.environment)) {
1726
1732
  return app.overrides.environment.toString();
1727
1733
  }
1728
1734
  const { group } = getCurrentEnvironment();