feat(web): switch build and dev back to Turbopack - #4119
Merged
Conversation
fd0f1e5 pinned the web build to `next build --webpack` because /api/upload-file 500'd on Vercel with ERR_DLOPEN_FAILED for sharp's libvips. Root cause was @vercel/nft's sharp special case being gated on `sharp/lib/index.js`, which sharp 0.35 removed, so @img/sharp-libvips-* never got traced into the lambda (lovell/sharp#4567, vercel/next.js#96064). Fixed upstream in vercel/next.js#95507, which 16.3.0-preview.10 includes. Verified the Turbopack trace locally: the upload-file nft.json now lists libvips-cpp.8.18.3 and 47 sharp files (webpack traced 38), and both hash-suffixed aliases carry their store target files, so the vercel/next.js#87737 failure mode is absent too. Persons e2e passes 17/17, including both image-upload specs. 0c2b412 had put dev on --webpack only to match build, so it follows. Also drop the stale "Requires Next >= 16.3" note from useTypeScriptCli and keep it marked TODO with its removal condition. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Check if the Pull Request fulfils these requirements
🤖 Generated with Claude Code
Greptile Summary
Switches the web application’s development and production builds from webpack back to Next.js’s default Turbopack bundler.
--webpackflags from the web build and development scripts.Confidence Score: 5/5
The PR appears safe to merge with no actionable defects identified.
The pinned Next.js version and documented validation address the prior Turbopack tracing failure, while the remaining configuration and script changes are internally consistent.
Reviews (1): Last reviewed commit: "feat(web): switch build and dev back to ..." | Re-trigger Greptile