[PR #5580] [MERGED] docs: add NextJS pages example #6097

Closed
opened 2026-03-13 12:47:36 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5580
Author: @TheSoki
Created: 10/25/2025
Status: Merged
Merged: 10/25/2025
Merged by: @himself65

Base: canaryHead: canary


📝 Commits (3)

  • 1eb81b3 docs: add NextJS pages example
  • a0b3097 docs: fix default variant
  • 6d19679 docs: use double quotes

📊 Changes

1 file changed (+12 additions, -2 deletions)

View changed files

📝 docs/content/docs/installation.mdx (+12 -2)

📄 Description

The current setup only includes the Next.js example that works with the App Router.
This PR adds a Pages Router variant and updates the existing example to be clearly marked as App Router.


Summary by cubic

Add a Next.js Pages Router example to the installation docs and clearly label the existing example as App Router. Tabs now show both variants with the correct code snippets, including the Pages Router handler and bodyParser config.


🔄 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/5580 **Author:** [@TheSoki](https://github.com/TheSoki) **Created:** 10/25/2025 **Status:** ✅ Merged **Merged:** 10/25/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `canary` --- ### 📝 Commits (3) - [`1eb81b3`](https://github.com/better-auth/better-auth/commit/1eb81b3edef75025f1689c640f05420db7365a4c) docs: add NextJS pages example - [`a0b3097`](https://github.com/better-auth/better-auth/commit/a0b3097dc15885edbe05d1f74443e85ea36c504a) docs: fix default variant - [`6d19679`](https://github.com/better-auth/better-auth/commit/6d1967917df21883e00a05893e75684055f47ee9) docs: use double quotes ### 📊 Changes **1 file changed** (+12 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/installation.mdx` (+12 -2) </details> ### 📄 Description The current setup only includes the Next.js example that works with the App Router. This PR adds a **Pages Router** variant and updates the existing example to be clearly marked as **App Router**. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Add a Next.js Pages Router example to the installation docs and clearly label the existing example as App Router. Tabs now show both variants with the correct code snippets, including the Pages Router handler and bodyParser config. <!-- 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-03-13 12:47:36 -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#6097