[PR #5276] [MERGED] docs: bump to next.js 16 #22797

Closed
opened 2026-04-15 21:17:21 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5276
Author: @Kinfe123
Created: 10/13/2025
Status: Merged
Merged: 10/13/2025
Merged by: @himself65

Base: canaryHead: chore/nextjs16-bump


📝 Commits (4)

📊 Changes

5 files changed (+514 additions, -121 deletions)

View changed files

📝 docs/next.config.js (+3 -0)
📝 docs/package.json (+4 -4)
📝 docs/proxy.ts (+1 -1)
📝 docs/tsconfig.json (+8 -2)
📝 pnpm-lock.yaml (+498 -114)

📄 Description

changes helps on bring the prebundling (cold-start graph built) of turbopack from 1050ms to 600ms, also the compiling got ~1.5x faster and deprecated some flag since turbopack is an opt-out. and much more improvement on DX specially both on dev and prod

prod build from an avg of 2min 40sec to 53sec ( ~1min )
Screenshot 2025-10-13 at 5 06 08 PM


Summary by cubic

Upgraded the docs app to Next.js 16 (beta) to improve dev build speed. Cold starts drop ~1050ms→~600ms and compiles are ~1.5x faster; plus minor TS JSX and proxy export updates.

  • Performance

    • Enabled Turbopack filesystem cache for dev in next.config.js.
    • Removed the --turbopack flag from the dev script (use plain "next dev").
  • Dependencies

    • Bumped next to 16.0.0-beta.0.
    • Pinned react and react-dom to 19.2.0; pinned @types via pnpm overrides.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/5276 **Author:** [@Kinfe123](https://github.com/Kinfe123) **Created:** 10/13/2025 **Status:** ✅ Merged **Merged:** 10/13/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `chore/nextjs16-bump` --- ### 📝 Commits (4) - [`f02df84`](https://github.com/better-auth/better-auth/commit/f02df84db92781f75d27b736164a589e27cf0f03) chore: bump nextjs 16 - [`60bb9c5`](https://github.com/better-auth/better-auth/commit/60bb9c589ff5bf6acdde5c15b2ee84818710a007) no more flag - [`f5e9300`](https://github.com/better-auth/better-auth/commit/f5e9300855004b7b85e8416f31ce2b8f268bad72) lint - [`157d2c1`](https://github.com/better-auth/better-auth/commit/157d2c104280fd154e0f1c7dac4027b71115836a) chore: update package.json ### 📊 Changes **5 files changed** (+514 additions, -121 deletions) <details> <summary>View changed files</summary> 📝 `docs/next.config.js` (+3 -0) 📝 `docs/package.json` (+4 -4) 📝 `docs/proxy.ts` (+1 -1) 📝 `docs/tsconfig.json` (+8 -2) 📝 `pnpm-lock.yaml` (+498 -114) </details> ### 📄 Description changes helps on bring the prebundling (cold-start graph built) of turbopack from 1050ms to 600ms, also the compiling got ~1.5x faster and deprecated some flag since turbopack is an opt-out. and much more improvement on DX specially both on dev and prod prod build from an avg of 2min 40sec to 53sec ( ~1min ) <img width="485" height="133" alt="Screenshot 2025-10-13 at 5 06 08 PM" src="https://github.com/user-attachments/assets/2df75ba5-2038-4035-888a-c868dd90ebdf" /> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Upgraded the docs app to Next.js 16 (beta) to improve dev build speed. Cold starts drop ~1050ms→~600ms and compiles are ~1.5x faster; plus minor TS JSX and proxy export updates. - **Performance** - Enabled Turbopack filesystem cache for dev in next.config.js. - Removed the --turbopack flag from the dev script (use plain "next dev"). - **Dependencies** - Bumped next to 16.0.0-beta.0. - Pinned react and react-dom to 19.2.0; pinned @types via pnpm overrides. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 21:17:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#22797