Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure require-hook env is set properly on deploy (#48902)
This ensures we set the pre-bundled react env variable early enough when in a deploy environment as otherwise incorrect react versions could be initialized with app directory. Test deployment with fix can be seen here https://metadata-dynamic-lsbqdamud-vtest314-ijjk-testing.vercel.app/dynamic/test This re-adds the patch we were doing before b5f7f84#diff-90d1d5f446bdf243be25cc4ea2295a9c91508859d655e51d5ec4a3562d3a24d9 No additional tests were added here as existing e2e deploy tests were failing without this. Fixes: [slack thread](https://vercel.slack.com/archives/C03S8ED1DKM/p1682546721052149) Fixes: [slack thread](https://vercel.slack.com/archives/C035J346QQL/p1682539142269669) Fixes: #48872
- Loading branch information