NF-005: Envelope URL is outside the remote's origins
An envelope referenced an asset or bootstrap URL on an origin the remote does not declare, so a misbehaving remote cannot make the host load code from...
Why This Error Occurred
An envelope referenced an asset or bootstrap URL on an origin the remote does not declare, so a misbehaving remote cannot make the host load code from elsewhere.
Possible Ways to Fix It
-
Add a legitimate origin, such as a CDN, to the remote's
assetOrigins. Its ownoriginis always allowed:// federation.ts remotes: { shop: { origin: 'https://shop.example.com', assetOrigins: ['https://cdn.example.com'], }, } -
Otherwise, find out why the remote emitted that URL.
Useful Links
NF-004: Invalid island envelope
A remote's response failed envelope schema validation. It may be truncated, come from something other than a next-federation remote, or be an error page...
NF-006: Island server and client bundle run different React modes
The island was rendered with one React mode (development or production) and hydrates with the other. Mixing modes causes hydration errors that are hard to...