chore(deps): upgrade Next.js 16 and React 19#5166
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Confidence Score: 4/5This looks safe to merge after the documented CI and browser checks pass.
packages/next-config/index.js and the app login pages are the main runtime surfaces to keep covered in CI.
|
| Filename | Overview |
|---|---|
| packages/next-config/index.js | Centralizes Next 16 shared config for Webpack, i18n, image policy, source maps, and development origins. |
| apps/frontend-manage/src/components/Layout.tsx | Moves unauthenticated manage redirects into an effect and preserves the current path as a login return target. |
| apps/frontend-manage/src/pages/login.tsx | Replaces client-side login forwarding with an SSR redirect that only accepts the configured manage origin. |
| apps/frontend-pwa/src/pages/login.tsx | Adds server-side return-target normalization for PWA, assessment, and configured chat redirects. |
| apps/chat/next.config.ts | Uses the shared Next config with chat-specific i18n disabled for the app-router build. |
| apps/auth/src/pages/index.tsx | Updates the Edu-ID login button wrapper and accessible disabled-state hint while preserving callback URL behavior. |
| apps/*/eslint.config.mjs | Migrates Next app linting to flat ESLint configs with scoped generated-file ignores and React Compiler rule exceptions. |
| apps/*/package.json | Updates framework dependencies and switches Next app scripts to explicit Webpack builds and route type generation. |
Reviews (1): Last reviewed commit: "docs(project): record Next React verific..." | Re-trigger Greptile
Summary
This draft replaces #5091 with a rebuilt and independently verified Next.js 16 and React 19 upgrade.
16.2.9, React and React DOM to19.2.7, and@ducanh2912/next-pwato10.2.9.How it works
allowedDevOriginsfor namespaced**.klicker.localhostworktrees.i18nconfig and still emitsapps/chat/.next/standalone/apps/chat/server.js.sw.js, a Workbox chunk, and their custom worker during production builds. Development disables service-worker registration.next typegenbefore TypeScript. Pages Router check configs exclude conflicting development route declarations.Branch coverage
v3bdc670190Review focus
Verification
Current head and immediately preceding code SHA:
CI=true pnpm install --frozen-lockfilein a fresh DevPod with Node24.16.0and pnpm11.5.0: passed.NODE_ENV=production pnpm exec turbo run build --concurrency=4 --force: 21/21 tasks passed, zero cached.TURBO_CONCURRENCY=4 pnpm run build:test: 19/19 tasks passed.pnpm run check:all: passed. Typecheck completed 23/23 tasks.A-login.cy.ts: 7/7 passed twice in the seeded Next 16 environment.Warnings and limits:
Full report:
project/2026-07-11-next-react-verification/verification.mdScreenshots
Additional captures: auth, control, logged-out chat.
Security / privacy
Blocking before merge
Follow-up after merge
Old PR #5091 remains open until a maintainer approves closing it.