Skip to content
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

fix(module-federation): ensure the static remotes env var is used for task hashing #21390 #21414

Merged
merged 4 commits into from
Jan 31, 2024

Conversation

Coly010
Copy link
Contributor

@Coly010 Coly010 commented Jan 30, 2024

  • fix(react): ensure the static remotes env var is used for task hashing
  • fix(angular): ensure the static remotes env var is used for task hashing

Current Behavior

When a remote is built and served via the module-federation-dev-server an env var is used point to a single file server, allowing for increased performance benefits locally.
However, this env var isn't taken into consideration when the task hash is calculated, leading to false positives.

Expected Behavior

Ensure the env var is added to the executor inputs in target defaults in nx.json.

Related Issue(s)

Fixes #21390

@Coly010 Coly010 requested review from a team as code owners January 30, 2024 11:25
@Coly010 Coly010 self-assigned this Jan 30, 2024
Copy link

vercel bot commented Jan 30, 2024

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

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Jan 30, 2024 0:23am

Copy link
Member

@leosvelperez leosvelperez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just left a non-blocking suggestion.

@Coly010 Coly010 changed the title fix(angular): ensure the static remotes env var is used for task hashing #21390 fix(module-federation): ensure the static remotes env var is used for task hashing #21390 Jan 30, 2024
@Coly010 Coly010 merged commit f0f5039 into nrwl:master Jan 31, 2024
6 checks passed
FrozenPandaz pushed a commit that referenced this pull request Feb 2, 2024
Copy link

github-actions bot commented Feb 6, 2024

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 Feb 6, 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.

Module Federation Dev Server uses env variables to pass data, this breaks caching
3 participants