Skip to content

chore(deps): update Next.js 16.3, React, Prisma, MUI, and related packages - #160

Draft
mkayander wants to merge 11 commits into
mainfrom
cursor/update-nextjs-react-8f0a
Draft

chore(deps): update Next.js 16.3, React, Prisma, MUI, and related packages#160
mkayander wants to merge 11 commits into
mainfrom
cursor/update-nextjs-react-8f0a

Conversation

@mkayander

@mkayander mkayander commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Summary

Rebased onto latest main (includes #128). Dependency upgrade + Instant Nav groundwork, with a deploy-safe public home.

Status (2026-08-05)

  • Pinned next@16.2.12 — restores Vercel preview API routing. Do not re-bump to 16.3.x until Pages i18n + Turbopack adapter works on Vercel.
  • Dual-router shell — shared chrome uses next/compat/router so App pilot routes do not throw.
  • Public home on Pages againpages/index + shared MarketingHomeView. Pages i18n cannot rewrite bare /{locale} into App routes. App internal-marketing/[locale] remains the Instant Nav pilot.

Vercel preview smoke (1bd2a698) — green

Route Result
/, /en, /de 200 (x-matched-path: /en / /de)
/api/auth/session 200
/api/trpc/* 200
/de/playground, /privacy 200
/internal-marketing/en (pilot) 200

Local

pnpm lint · pnpm test (432) · pnpm build — all OK on 16.2.12

Next Instant Nav steps (not merge blockers for dep upgrade)

  1. Migrate locale routing off Pages i18n → public App home cutover
  2. App layout metadata; cacheComponents; retry 16.3.x on Vercel
Open in Web Open in Cursor 

@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dstruct Ready Ready Preview Aug 5, 2026 8:12am

@cursor cursor Bot changed the title chore(deps): update Next.js, React, and related packages chore(deps): update Next.js 16.3, React, and related packages Aug 4, 2026
@cursor cursor Bot changed the title chore(deps): update Next.js 16.3, React, and related packages chore(deps): update Next.js 16.3, React, Prisma, MUI, and related packages Aug 4, 2026
cursoragent and others added 8 commits August 4, 2026 21:11
- next 16.2.6 → 16.2.12
- react / react-dom 19.2.6 → 19.2.8
- next-auth 4.24.14 → 4.24.15
- @trpc/* 11.17.0 → 11.18.0
- @tanstack/react-query 5.100.11 → 5.101.4
- @next/eslint-plugin-next, @types/react, @types/react-dom
- next 16.2.12 → 16.3.0
- @next/eslint-plugin-next 16.2.12 → 16.3.0
- pnpm minimumReleaseAgeExclude entries for fresh 16.3 packages
- next-env.d.ts route type paths updated by Next 16.3
Prisma:
- prisma, @prisma/client, @prisma/adapter-pg 7.8.0 → 7.9.1

UI & runtime:
- @mui/material, @mui/icons-material 9.0.1 → 9.2.0
- @mui/lab 9.0.0-beta.3 → 9.0.0-beta.6
- @mui/x-charts 9.3.0 → 9.10.1
- @react-three/fiber 9.6.1 → 9.7.0
- three 0.183.2 → 0.185.1, @types/three 0.173.0 → 0.185.3
- axios 1.16.1 → 1.19.0, sharp 0.34.5 → 0.35.3
- monaco-editor 0.55.1 → 0.56.0
- react-resizable-panels, react-virtuoso, sanitize-html, joi, etc.

Dev tooling:
- eslint 10.4.0 → 10.8.0, prettier 3.8.3 → 3.9.6
- typescript-eslint 8.59.4 → 8.66.0, sass, tsx, semantic-release

Prettier 3.9 reformatted union types in a few files (no logic changes).
Next.js 16.3.0 + Turbopack + Pages Router i18n breaks Vercel routing:
/api/* requests fall through to static /en/404 instead of serverless
functions (known adapter issue; i18n-api-support test disabled for
Turbopack). 16.2.12 previews work; keep other dependency updates.
- Design doc: App Router requirement, i18n conflict, Vercel 16.3 gate, phased rollout
- TODO checklist for phases 0-4
- CLAUDE.md imports AGENTS.md
- AGENTS.md: Instant Nav doc paths and Pages Router guardrail
Retry 16.3.0 after adapter-vercel i18n API routing fix. Local
production build and API smoke tests pass (/api/auth/session,
/api/trpc/*). Vercel preview verification pending.
- Add app/internal-marketing/[locale] with generateMetadata, MUI AppRouterCacheProvider, and shared client shell (tRPC, Redux, Session, Apollo, i18n).
- Extend src/proxy.ts: merge former /api/config edge handler, rewrite / and /{locale} to internal-marketing, inject x-dstruct-app-locale for root html lang/dir.
- Replace createTRPCNext/withTRPC with createTRPCReact + TrpcProvider in _app and App layout; drop @trpc/next.
- Move landing UI from pages/index to MarketingHomeView (remove pages/index to avoid App/Pages / conflict per Next 16).
- Add loadI18nForLocale, AppRouterI18nProvider split from Pages I18nProvider.

Co-authored-by: Max Kayander <mkayander@users.noreply.github.com>
- Proxy: bare locale rewrites only; exclude /api/* from matcher
- AppRootLayoutClient: CookieConsentRoot
- app/layout: font variables
- next.config: cacheComponents TODO comment
- Prettier fix for #128 files after rebase onto main
…pilot

16.3.0 + Pages i18n still routes /api/* and / to /en/404 on Vercel.
Keep App Router marketing home and other dependency upgrades; retry
16.3.x when Turbopack preview API routing is fixed.
Shared chrome (app bar, side panel, cookie banner, search/slug hooks)
used next/router, which throws on App Router. Route through
next/compat/router and pathname fallbacks so Pages and App shells share UI.
return;
}
// App Router marketing home: full navigation to locale home URL.
window.location.assign(newLocale === "en" ? "/" : `/${newLocale}`);
Pages i18n cannot rewrite bare /{locale} into App routes (invoke becomes
/{locale}/internal-marketing/... → 404; Vercel / was edge NOT_FOUND).
Restore pages/index with MarketingHomeView; keep App internal-marketing
as Instant Nav pilot. Proxy only handles /api/config + pilot locale header.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants