-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: Allow `DISABLE_SPEEDY` to be set to `false` The old initialization of `DISABLE_SPEEDY` meant that the only way it could be set to a falsey value was if `NODE_ENV` was set to `production` and no other setting was set. Setting `SC_DISABLE_SPEEDY` or the environment variables to false would be overridden by `NODE_ENV`. The new initialization ensures that if one of these options is set, it鈥檚 value is respected. This change should only affect the computed value of `DISABLE_SPEEDY` if one of the settings has the value `false` or `鈥檉alse鈥檂. Otherwise it should have the same truthy or falsey value. Since the expected behavior of setting one of the configuration variables to `false` is to have `DISABLE_SPEEDY` set to false, this should be a fix and not a breaking change. * test: Add tests for setting `DISABLE_SPEEDY` to `false` * fix: Ensure `DISABLE_SPEEDY` boolean type Technically not needed, but makes the tests pass when passing in the string values of `鈥檉alse鈥檂 without needing to modify the compare values. And is a bit cleaner to have it as a boolean type. * fix: Inline `process.env` references Per [this comment](#3289 (comment)) * docs: Add changelog entry
- Loading branch information
1 parent
e0286a1
commit 26827b6
Showing
3 changed files
with
50 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters