Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure require-hook env is set properly on deploy #48902

Merged
merged 1 commit into from Apr 27, 2023

Conversation

ijjk
Copy link
Member

@ijjk ijjk commented Apr 27, 2023

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
Fixes: slack thread
Fixes: #48872

@ijjk ijjk added created-by: Next.js team PRs by the Next.js team type: next labels Apr 27, 2023
@ijjk ijjk marked this pull request as ready for review April 27, 2023 03:28
@ijjk ijjk requested review from timneutkens, shuding, a team and huozhi as code owners April 27, 2023 03:28
@ijjk ijjk merged commit 073a175 into vercel:canary Apr 27, 2023
92 of 94 checks passed
@ijjk ijjk deleted the fix/react-require-hook branch April 27, 2023 03:28
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError in 13.3.2-canary.7: Cannot read properties of undefined (reading 'current') error.
1 participant