Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix process.env not being available in standalone mode (#54203)
### What? When running Next in standalone mode, `process.env` is not made available to the render workers, making it impossible to access environment variables that aren't provided in `.env` files. ### Why? `initialEnv` is undefined in `createWorkers` when the server is started in standalone mode. ### How? This initializes the workers with `process.env` in case `initialEnv` is unavailable, similar to the behavior of `loadEnvConfig()` Closes NEXT-1508 Fixes #53367
- Loading branch information
Showing
4 changed files
with
13 additions
and
5 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
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