[PR #8235] [CLOSED] Auth0 custom domain redirect #7840

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8235
Author: @himself65
Created: 3/1/2026
Status: Closed

Base: canaryHead: cursor/auth0-custom-domain-redirect-ed6a


📝 Commits (1)

  • c8d61c3 fix(docs): add route handler for Copy MD button

📊 Changes

3 files changed (+32 additions, -0 deletions)

View changed files

📝 landing/app/docs/[[...slug]]/page.client.tsx (+1 -0)
landing/app/llms.mdx/[[...slug]]/route.ts (+27 -0)
📝 landing/next.config.js (+4 -0)

📄 Description

Fixes the "Copy MD" button by adding a route handler to serve raw MDX content and improving error handling.

The "Copy MD" button fetched window.location.pathname + ".mdx" but no route existed to serve this content, resulting in Next.js error pages being copied instead of the raw MDX. This PR introduces a new route handler to correctly serve the MDX content and adds res.ok checking to prevent caching error responses.


Slack Thread

Open in Web Open in Cursor 


🔄 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/8235 **Author:** [@himself65](https://github.com/himself65) **Created:** 3/1/2026 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `cursor/auth0-custom-domain-redirect-ed6a` --- ### 📝 Commits (1) - [`c8d61c3`](https://github.com/better-auth/better-auth/commit/c8d61c32eef38bae268ffa012e2507a969664ff3) fix(docs): add route handler for Copy MD button ### 📊 Changes **3 files changed** (+32 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `landing/app/docs/[[...slug]]/page.client.tsx` (+1 -0) ➕ `landing/app/llms.mdx/[[...slug]]/route.ts` (+27 -0) 📝 `landing/next.config.js` (+4 -0) </details> ### 📄 Description Fixes the "Copy MD" button by adding a route handler to serve raw MDX content and improving error handling. The "Copy MD" button fetched `window.location.pathname + ".mdx"` but no route existed to serve this content, resulting in Next.js error pages being copied instead of the raw MDX. This PR introduces a new route handler to correctly serve the MDX content and adds `res.ok` checking to prevent caching error responses. --- [Slack Thread](https://betterauth.slack.com/archives/C0A8B5BARUK/p1772347314996549?thread_ts=1772347314.996549&cid=C0A8B5BARUK) <p><a href="https://cursor.com/agents/bc-648af251-a9d4-529d-81d1-4ba0ffa1c9e2"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a href="https://cursor.com/background-agent?bcId=bc-648af251-a9d4-529d-81d1-4ba0ffa1c9e2"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;</p> --- <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 13:50:45 -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#7840