Skip to content

refactor(app): extract shared auth config and AppShellProviders - #165

Merged
mkayander merged 2 commits into
mainfrom
cursor/instant-nav-phase1-8f0a
Aug 9, 2026
Merged

refactor(app): extract shared auth config and AppShellProviders#165
mkayander merged 2 commits into
mainfrom
cursor/instant-nav-phase1-8f0a

Conversation

@mkayander

@mkayander mkayander commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Summary

Prep for Instant Nav public cutover — without the 16.3.0 bump (Vercel API regression confirmed again on preview).

Changes

  • src/server/auth/authOptions.ts — shared NextAuth config
  • AppShellProviders — shared provider stack for _app + AppRootLayoutClient

16.3.0 — not merged

Preview smoke on 2026-08-09:

Route Status x-matched-path
/api/auth/session 404 /en/404
/api/trpc/project.allBrief 404 /en/404
/, /de, /playground 200
/internal-marketing/* 200

Same regression as #160. Staying on next@16.2.12.

Verification

  • pnpm lint / pnpm test:ci (437) / pnpm build on 16.2.12
  • Await Vercel redeploy to confirm APIs green again
Open in Web Open in Cursor 

Phase 1: bump next and @next/eslint-plugin-next to 16.3.0 (local lint,
test, build pass — Vercel API routing must be verified on preview).

Prep for public App cutover:
- Move authOptions to src/server/auth/authOptions.ts
- Add AppShellProviders shared by Pages _app and AppRootLayoutClient
@vercel

vercel Bot commented Aug 9, 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 9, 2026 8:50pm

@mkayander
mkayander marked this pull request as ready for review August 9, 2026 20:45
@cursor

cursor Bot commented Aug 9, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

…on 16.3.0

Preview smoke on PR #165: /api/auth/session and /api/trpc/* return 404 with
x-matched-path: /en/404 (same regression as #160). Keep authOptions and
AppShellProviders refactor; defer 16.3.x until adapter/i18n fix lands.
@cursor cursor Bot changed the title chore(deps): retry Next.js 16.3.0 and extract shared app shell refactor(app): extract shared auth config and AppShellProviders Aug 9, 2026
@mkayander
mkayander merged commit d37ca6a into main Aug 9, 2026
6 checks passed
@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.381.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants