[PR #2638] [MERGED] docs: update nuxt catch-all route to match example #4417

Closed
opened 2026-03-13 11:45:32 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2638
Author: @Eazash
Created: 5/13/2025
Status: Merged
Merged: 5/13/2025
Merged by: @Kinfe123

Base: mainHead: fix/nuxt-docs-catch-all-route


📝 Commits (1)

  • 503858f docs: update nuxt catch-all route to match example

📊 Changes

1 file changed (+3 additions, -3 deletions)

View changed files

📝 docs/content/docs/integrations/nuxt.mdx (+3 -3)

📄 Description

The docs refer to server/api/[...auth].ts as the path to place the server route handler. This is incorrect as it matches all routes under /api. The nuxt example correctly uses server/api/auth/[...all].ts which only matches routes under /api/auth.

This PR updates the docs to match the proper usage in the example


🔄 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/2638 **Author:** [@Eazash](https://github.com/Eazash) **Created:** 5/13/2025 **Status:** ✅ Merged **Merged:** 5/13/2025 **Merged by:** [@Kinfe123](https://github.com/Kinfe123) **Base:** `main` ← **Head:** `fix/nuxt-docs-catch-all-route` --- ### 📝 Commits (1) - [`503858f`](https://github.com/better-auth/better-auth/commit/503858ff319e9af85ae10f2daab11e723c985ef1) docs: update nuxt catch-all route to match example ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/integrations/nuxt.mdx` (+3 -3) </details> ### 📄 Description The docs refer to `server/api/[...auth].ts` as the path to place the server route handler. This is incorrect as it matches all routes under `/api`. The [nuxt example correctly uses `server/api/auth/[...all].ts`](https://github.com/better-auth/better-auth/blob/dd122da3e5ea8e20e6d3bebad8ec7490d656b95d/examples/nuxt-example/server/api/auth/%5B...all%5D.ts) which only matches routes under `/api/auth`. This PR updates the docs to match the proper usage in the example --- <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 11:45:32 -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#4417