Skip to content

Commit

Permalink
fix: absence of artifacts base url
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-pribilinskiy committed Jun 18, 2023
1 parent 13db07e commit 12c49a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/cloudbedsRemoteManifests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ export function getRemoteManifestUrls(options?: ModuleFederationTypesPluginOptio
artifactsBaseUrl = `${CloudbedsCloudfrontDomain.Prod}/builds`;
manifestBaseUrl = `${CloudbedsCloudfrontDomain.Prod}/remotes/prod-ga/{version}`;
} else {
artifactsBaseUrl = CloudbedsCloudfrontDomain.Dev;
artifactsBaseUrl = `${CloudbedsCloudfrontDomain.Dev}/branches`;
manifestBaseUrl = `${CloudbedsCloudfrontDomain.Dev}/remotes/dev-ga`;
}
}

return {
artifactsBaseUrl,
...(artifactsBaseUrl ? { artifactsBaseUrl } : null),
registry: `${manifestBaseUrl}/${CLOUDBEDS_REMOTES_MANIFEST_FILE_NAME}`,
...options?.remoteManifestUrls,
}
Expand Down

0 comments on commit 12c49a2

Please sign in to comment.