Skip to content

fix(nextjs-mf): fix broken loading of non nextjs remotes #3323

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

h3adache
Copy link
Contributor

@h3adache h3adache commented Dec 6, 2024

Description

The change to consume mf 2.0 manifests broke loading of non nextjs remotes because it was hard coded to assume next remotes.

This change fixes loading of remotes while preserving the ability to load nextjs mf-manifests

Other minor changes are just to fix broken lint when running

pnpm nx affected -t lint --parallel=7 --exclude='*,!tag:type:pkg'

Related Issue

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation.

Copy link

changeset-bot bot commented Dec 6, 2024

🦋 Changeset detected

Latest commit: 6c8f932

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@module-federation/nextjs-mf Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

netlify bot commented Dec 6, 2024

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit 6c8f932
🔍 Latest deploy log https://app.netlify.com/sites/module-federation-docs/deploys/675b6438e18f6700082b3d84
😎 Deploy Preview https://deploy-preview-3323--module-federation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

the change to consume mf 2.0 manifests broke loading of non nextjs remotes because it was hard coded
to assume next remotes.
@h3adache h3adache force-pushed the fix-nextjs-mf-remote-loading branch from 0a6bf5a to 7890299 Compare December 11, 2024 01:06
@h3adache
Copy link
Contributor Author

@ScriptedAlchemy I know you aren't trying to pick up new nextjs-mf features but can you please look at this? It's blocking us atm as it breaks any non nextjs loading which I'm trying to migrate to.

@ScriptedAlchemy
Copy link
Member

Will merge

@ScriptedAlchemy
Copy link
Member

@h3adache please run changeset add

@ScriptedAlchemy ScriptedAlchemy merged commit 4239338 into module-federation:main Dec 12, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants