Skip to content

Conversation

@WvKuipersVisma
Copy link

@WvKuipersVisma WvKuipersVisma commented Feb 11, 2026

This changes allows to provide a deployUrl option when calling initFederation to load the remoteEntry.json file from a custom path or domain like so:

initFederation('/assets/federation.manifest.json', {deployUrl: './custom-root/'})
  .catch(err => console.error(err))
  .then(_ => import('./bootstrap'))
  .catch(err => console.error(err));

or:

initFederation('/assets/federation.manifest.json', {deployUrl: 'http://example.com'})
  .catch(err => console.error(err))
  .then(_ => import('./bootstrap'))
  .catch(err => console.error(err));

This is needed when you run the application on a path other then root or when you want to load the assets over a custom domain. (like an CDN)

Closes #866

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support deployUrl to load remoteEntry.json

1 participant