Skip to content

docs: Instant Navigations migration plan and agent DX groundwork - #161

Draft
mkayander wants to merge 5 commits into
mainfrom
cursor/instant-navigations-plan-8f0a
Draft

docs: Instant Navigations migration plan and agent DX groundwork#161
mkayander wants to merge 5 commits into
mainfrom
cursor/instant-navigations-plan-8f0a

Conversation

@mkayander

Copy link
Copy Markdown
Owner

Summary

Adds a phased plan for adopting Next.js 16.3 Instant Navigations and related agent-native DX in dStruct.

Instant Navigations (cacheComponents, partialPrefetching, 'use cache', Instant Insights) is App Router only. This repo is still Pages Router (src/pages/) with 20-locale i18n in next.config.mjs, so full adoption requires an App Router migration — not a config toggle.

What's in this PR

  • vibe-docs/Instant-Navigations-Design.md — architecture, i18n conflict, Vercel 16.3 gate, phased rollout (marketing pilot → playground shell → deprecate Pages)
  • vibe-docs/Instant-Navigations-TODO.md — checklist per phase
  • CLAUDE.md@AGENTS.md for Claude Code
  • AGENTS.md — Instant Nav bundled doc paths + guardrail: do not enable cacheComponents on Pages Router

Recommended next steps (not in this PR)

  1. Phase 1: Re-try latest 16.3.x on Vercel after adapter-vercel#81 (i18n API routing fix); verify /api/trpc/* and /api/auth/session previews
  2. Phase 2: App Router pilot for /, /privacy, /daily under app/[lang]/ with extracted AppProviders
  3. Enable cacheComponents + partialPrefetching only after first App routes exist

Related

Open in Web Open in Cursor 

- 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
@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 4, 2026 7:36pm

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.

2 participants