-
Notifications
You must be signed in to change notification settings - Fork 379
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
Conversation
src/utils/run-build.ts
Outdated
@@ -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 }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happened to settingsOverrides
?
There was a problem hiding this comment.
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
cd772a2
to
32c3c4b
Compare
913dd6e
to
b50f62e
Compare
b50f62e
to
5b8f1e1
Compare
There was a problem hiding this 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
🎉 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:
passes our tests.
A picture of a cute animal (not mandatory, but encouraged)