Skip to content

fix(module-federation): Add migration for ssr server file to run on it's own port#27411

Merged
ndcunningham merged 1 commit into
masterfrom
fix/mfe-add-migration-for-react-ssr
Aug 14, 2024
Merged

fix(module-federation): Add migration for ssr server file to run on it's own port#27411
ndcunningham merged 1 commit into
masterfrom
fix/mfe-add-migration-for-react-ssr

Conversation

@ndcunningham

@ndcunningham ndcunningham commented Aug 13, 2024

Copy link
Copy Markdown
Contributor

Current Behavior

Currently, if you have a SSR Mfe project and you run multiple ssr projects using the 'serve' target it would fail due to conflicting ports unless explicitly set PORT=4202 node dist/acme/server.js.

Expected Behavior

Now the default is to have the server take the same port as it was generated with so that if you run multiple server apps that depends on other apps in dev mode there will be no conflicts.

Related Issue(s)

Fixes #

@vercel

vercel Bot commented Aug 13, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Aug 14, 2024 3:49pm

@nx-cloud

nx-cloud Bot commented Aug 13, 2024

Copy link
Copy Markdown
Contributor

@ndcunningham ndcunningham self-assigned this Aug 13, 2024
@ndcunningham ndcunningham marked this pull request as ready for review August 13, 2024 17:25
@ndcunningham ndcunningham requested a review from a team as a code owner August 13, 2024 17:25
@ndcunningham ndcunningham requested a review from mandarini August 13, 2024 17:25
Comment thread packages/react/src/migrations/update-19-6-0/update-ssr-server-port.ts Outdated
Comment thread packages/react/src/migrations/update-19-6-0/update-ssr-server-port.ts Outdated
Comment thread packages/react/src/migrations/update-19-6-0/update-ssr-server-port.spec.ts Outdated
Comment thread packages/react/src/migrations/update-19-6-0/update-ssr-server-port.spec.ts Outdated
@ndcunningham ndcunningham force-pushed the fix/mfe-add-migration-for-react-ssr branch 2 times, most recently from 41e94ac to a928915 Compare August 13, 2024 21:07
Comment thread packages/react/migrations.json Outdated
@jaysoo jaysoo force-pushed the fix/mfe-add-migration-for-react-ssr branch from a928915 to f65f3d2 Compare August 14, 2024 13:11
@ndcunningham ndcunningham force-pushed the fix/mfe-add-migration-for-react-ssr branch 3 times, most recently from b08f9a3 to 2ffd5fb Compare August 14, 2024 15:02
@ndcunningham ndcunningham force-pushed the fix/mfe-add-migration-for-react-ssr branch from 2ffd5fb to 087da7a Compare August 14, 2024 15:37
@ndcunningham ndcunningham enabled auto-merge (squash) August 14, 2024 15:51
@ndcunningham ndcunningham merged commit edced6c into master Aug 14, 2024
@ndcunningham ndcunningham deleted the fix/mfe-add-migration-for-react-ssr branch August 14, 2024 16:11
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants