-
Notifications
You must be signed in to change notification settings - Fork 35
fix: add feature flag for the inheritance of the Node.js version from build #1394
Conversation
|
||
export type FeatureFlag = keyof typeof defaultFlags | ||
export type FeatureFlags = Record<FeatureFlag, boolean> | ||
export type FeatureFlags = Partial<Record<keyof typeof defaultFlags, boolean>> |
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.
The type changes make it so that we have autocompletion and validation for all feature flags. The are Partial
because it would be totally valid to input an empty object for example.
⏱ Benchmark resultsComparing with 3ba9b49 largeDepsEsbuild: 2.1s⬇️ 1.61% decrease vs. 3ba9b49
LegendlargeDepsNft: 8.7s⬆️ 3.66% increase vs. 3ba9b49
LegendlargeDepsZisi: 16s⬆️ 0.58% increase vs. 3ba9b49
|
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.
When you say "build", you're talking about the deployment configuration API, right? If so, I think it would be important to reflect that in the naming of things, otherwise it gets a bit confusing.
No i mean |
… build (netlify/zip-it-and-ship-it#1394) * fix: add feature flag for the inheritance of the Node.js version from build * Update feature_flags.ts --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Summary
I just want to make sure, we can turn this feature off completely. a featureFlag in build would actually not be able to 100% disable it.
Ref: https://github.com/netlify/pod-compute/issues/64
For us to review and ship your PR efficiently, please perform the following steps:
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.
passes our tests.
A picture of a cute animal (not mandatory, but encouraged)