Upgrade to Next.js 16 + React Compiler#2
Merged
Merged
Conversation
- Next.js 15.5 -> 16.2 (Turbopack default), React 19.1 -> 19.2, @types/react 19.2 - Enable React Compiler (babel-plugin-react-compiler); reactCompiler: true - Migrate ESLint to eslint-config-next flat config (drop FlatCompat/@eslint/eslintrc) - Rename middleware.ts -> proxy.ts (Next 16 proxy); update CODEOWNERS - Node 22 floor: CI node-version 22, package.json engines, README/AGENTS - e2e (Playwright) runs against the production build; analyze uses next build --webpack - Defer Cache Components/PPR (client-driven Supabase; negligible benefit) - Includes prior tooling: pino logging, /health, runbooks, issue/PR templates, knip/jscpd/tech-debt/validate-docs, Vitest coverage, CODEOWNERS Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
CI validate-docs failed because AGENTS.md linked to ./.factory/skills/supabase-migration/SKILL.md, which is intentionally not committed. Convert the markdown link to inline code. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.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.
Summary
Upgrades the app to Next.js 16.2.9 with React 19.2 and enables the now-stable React Compiler. Turbopack is the default for both dev and production builds. Also folds in the accumulated agent-readiness tooling from prior work.
Core upgrade
reactCompiler: true,babel-plugin-react-compiler) for auto-memoization in the chat UIeslint-config-nextnative flat config (droppedFlatCompat/@eslint/eslintrc)middleware.ts->proxy.ts(Next 16 proxy rename); CODEOWNERS updatednode-version: 22,engines.node >=22, README/AGENTSreact-hooks/set-state-in-effectfinding inchat-workspace.tsx(search debounce)analyzenow runsnext build --webpack(bundle-analyzer hooks Webpack; Turbopack is the default build)pnpm build && pnpm start); dummy Supabase key read fromE2E_SUPABASE_PUBLISHABLE_KEYwith a non-literal fallbackDecisions
Verification (all green)
lint, typecheck, vitest (100% coverage), production build (Turbopack), Playwright e2e (7/7), knip, jscpd, tech-debt, validate-docs, analyze.
Notes
This branch also carries earlier agent-readiness work (pino logging,
/health, runbooks, issue/PR templates, knip/jscpd/tech-debt/validate-docs, CODEOWNERS, Vitest coverage)..factory/anddroid-wiki/are intentionally excluded.