Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(nextjs-mf): added nextjs-ssr-manifest example#4231

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
benmarch wants to merge3 commits intomodule-federation:master
base:master
Choose a base branch
Loading
frombenmarch:add-nextjs-ssr-manifest

Conversation

benmarch
Copy link

@benmarchbenmarch commentedJul 7, 2024
edited
Loading

This is a clone of thenextjs-ssr example, but it uses mf-manifest.json instead of remoteEntry.js. Requires changes from this PR:module-federation/core#2726

This requires some CORS config to allow the manifest to be fetched from the browser. I just added the following to the NextJS config in each app, but there are other ways to do it:

// next.config.jsmodule.exports={headers(){return[{source:'/_next/static/chunks/mf-manifest.json',headers:[{key:'Access-Control-Allow-Origin',value:'*',},],}]},//...}

@CLAassistant
Copy link

CLAassistant commentedJul 7, 2024
edited
Loading

CLA assistant check
All committers have signed the CLA.

@github-actionsGitHub Actions
Copy link

Workflow status is failure ❌
Unfortunately test report wasn't generated, it can be if no workspaces changed. Please check the workflow run below.
Link to GitHub workflow:Github Workflow Link

@github-actionsgithub-actionsbot added the workflow-failureWorkflow is failed labelJul 7, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
workflow-failureWorkflow is failed
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@benmarch@CLAassistant

[8]ページ先頭

©2009-2025 Movatter.jp