[PR #5296] [MERGED] feat: nextjs 16 guide #31510

Closed
opened 2026-04-17 22:24:28 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: canaryHead: feat/nextjs-16-compatibility


📝 Commits (10+)

📊 Changes

6 files changed (+695 additions, -329 deletions)

View changed files

📝 demo/nextjs/next.config.ts (+1 -4)
📝 demo/nextjs/package.json (+6 -5)
📝 demo/nextjs/proxy.ts (+1 -1)
📝 demo/nextjs/tsconfig.json (+8 -2)
📝 docs/content/docs/integrations/next.mdx (+23 -0)
📝 pnpm-lock.yaml (+656 -317)

📄 Description

migration guide added in docs and configure the next config like how turbopack understand external module that have like C/C++ native binding and binaries to not be bundled by turbopack to just import at runtime since node already had that those packages are libsql , better-sqlite and other mentioned next.config.ts. i have figured out why pnpm override required it is that they have added couple of type that needs to exists on the latest react 19 that is referenced on the next itself.


🔄 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/5296 **Author:** [@Kinfe123](https://github.com/Kinfe123) **Created:** 10/14/2025 **Status:** ✅ Merged **Merged:** 10/14/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `feat/nextjs-16-compatibility` --- ### 📝 Commits (10+) - [`3a12156`](https://github.com/better-auth/better-auth/commit/3a12156bbc50320f1aa2a4b077bbf0acb819dc31) feat: nextjs 16 guide - [`739aa80`](https://github.com/better-auth/better-auth/commit/739aa8072695bfa1182d252b3f09c5a08d89b87a) lint - [`8bcad5f`](https://github.com/better-auth/better-auth/commit/8bcad5f97884c94dcd4f165b4c9573adb6ad8902) lock file - [`db8f6dd`](https://github.com/better-auth/better-auth/commit/db8f6ddb6c4f18b7ff639804c99bdaa560fb536f) Merge branch 'canary' into feat/nextjs-16-compatibility - [`1bf4203`](https://github.com/better-auth/better-auth/commit/1bf4203996dfae3a109ac39d810f0a586ac2e3d9) typecheck - [`25ca4fe`](https://github.com/better-auth/better-auth/commit/25ca4fe91d75e56b25adbec5f20cdc5d0c668a3a) lock file - [`04d506d`](https://github.com/better-auth/better-auth/commit/04d506dc3e0b711553801903e1e780e8a261ba84) chore: fix - [`1433740`](https://github.com/better-auth/better-auth/commit/1433740344235e3be47054dfe8834af72c8b01e5) chore: lock - [`d29d702`](https://github.com/better-auth/better-auth/commit/d29d70289ec457340b06dccebdf1e261b3347843) chore: lock - [`93eff8d`](https://github.com/better-auth/better-auth/commit/93eff8d2561aebaca4f3a83882a3f95ab10ff8a0) docs: update ### 📊 Changes **6 files changed** (+695 additions, -329 deletions) <details> <summary>View changed files</summary> 📝 `demo/nextjs/next.config.ts` (+1 -4) 📝 `demo/nextjs/package.json` (+6 -5) 📝 `demo/nextjs/proxy.ts` (+1 -1) 📝 `demo/nextjs/tsconfig.json` (+8 -2) 📝 `docs/content/docs/integrations/next.mdx` (+23 -0) 📝 `pnpm-lock.yaml` (+656 -317) </details> ### 📄 Description migration guide added in docs and configure the next config like how turbopack understand external module that have like C/C++ native binding and binaries to not be bundled by turbopack to just import at runtime since node already had that those packages are libsql , better-sqlite and other mentioned `next.config.ts`. i have figured out why pnpm override required it is that they have added couple of type that needs to exists on the latest react 19 that is referenced on the next itself. --- <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-17 22:24:28 -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#31510