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: process mutated env by plugins in dev server #7045

Merged
merged 3 commits into from
Feb 21, 2025
Merged

Conversation

VitaliyR
Copy link
Contributor

🎉 Thanks for submitting a pull request! 🎉

Summary

Fixes WRFL-2278

Uses netlify/build#6095, until released will fail.

Description in that PR. TL;DR: pass mutated env vars from the build plugins, which can mutate it via tweaking netlifyConfig.build.environment object, to the user site.


For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This ensures we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures your code follows our style guide and
    passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅

A picture of a cute animal (not mandatory, but encouraged)

Copy link

github-actions bot commented Feb 19, 2025

📊 Benchmark results

Comparing with cbb0d0b

  • Dependency count: 1,215 ⬆️ 1.73% increase vs. cbb0d0b
  • Package size: 317 MB ⬆️ 3.59% increase vs. cbb0d0b
  • Number of ts-expect-error directives: 729 (no change)

@@ -140,7 +145,7 @@ export const runNetlifyBuild = async ({
if (!options.dir && netlifyConfig?.build?.publish) {
settingsOverrides.dist = netlifyConfig.build.publish
}
await devCommand(settingsOverrides)
await devCommand({ netlifyConfig })
Copy link
Contributor

Choose a reason for hiding this comment

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

what happened to settingsOverrides?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, my stash went crazy and not noticed it wasn't added to commit. Fixed

@VitaliyR VitaliyR requested a review from davbree February 19, 2025 18:07
Copy link

@denar90 denar90 left a comment

Choose a reason for hiding this comment

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

Approving to unlock release process

@VitaliyR VitaliyR enabled auto-merge (squash) February 21, 2025 19:54
@VitaliyR VitaliyR merged commit 5435e79 into main Feb 21, 2025
49 checks passed
@VitaliyR VitaliyR deleted the vitaliir/WRFL-2278 branch February 21, 2025 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants