feat(APP-469): upgrade to Next.js 16 with React Compiler and Turbopack#999
Merged
feat(APP-469): upgrade to Next.js 16 with React Compiler and Turbopack#999
Conversation
- Bump Next.js to 16 and other deps - Enable React Compiler and Turbopack resolve aliases - Replace webpack config with serverExternalPackages and empty browser fallbacks - Use next experimental-analyze for build:analyze - Rename middleware to proxy and middlewareUtils to proxyUtils
|
🚀 Preview Deployment: View Here |
|
E2E Smoke Results
|
9d16114 to
45c55e2
Compare
… multiple workflows - Deleted the shared build workflow file. - Updated deployment jobs in app-development, app-preview, app-production, app-rollback, app-staging, and release-pr-deploy workflows to remove dependencies on the build job. - Adjusted environment variable handling and references for deployments.
45c55e2 to
5e7d586
Compare
milosh86
reviewed
Feb 26, 2026
Contributor
milosh86
left a comment
There was a problem hiding this comment.
looks good, left a couple of Qs
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.
Description
Summary
Upgrade from Next.js 15.5.12 (Webpack) to Next.js 16.1.6 (Turbopack) with React Compiler and deferred AppKit initialization.
What changed:
.nextoutput from 3.0 GB to 166 MB (18x smaller), build warnings from 8 to 0babel-plugin-react-compilerprovides automatic component memoization at build timewebpackblock innext.config.mjswithserverExternalPackages+turbopack.resolveAlias; addedsrc/empty.tsstub for react-native/async-storage browser fallbacksdisableLogger→bundleSizeOptimizations.excludeDebugStatements(replaces deprecated API)middleware.ts→proxy.ts: renamed middleware and its utils to follow Next.js 16 conventionsshared-build.ymlworkflow; deployment jobs no longer depend on a separate build step (Vercel handles builds)createAppKit()from module-scope side effect to a lazyensureAppKit()called fromConnectWalletDialog. Reduces initial JS parse cost on every page — transferred size delta halved from +22% to +10% vs N15Performance tradeoff (warm Vercel preview, 3 runs × 5 pages):
Full impact analysis: Next.js 15 → 16 Upgrade: Impact Analysis
Type of Change
Developer Checklist:
Review Checklist: