Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent NEXT_PHASE env change in workers (#28941)
`process.env.NEXT_PHASE` was moved in #20900 to be set during `staticCheckSpan.traceAsyncFn`. I believe this to be a mistake, the NEXT_PHASE should be set earlier in the code execution. On a personal note, this impacts an application I am developing where we rely on the environment variable `NEXT_PHASE` to be set but is `undefined` when we check it. Co-authored-by: JJ Kasper <jj@jjsweb.site>
- Loading branch information