[PR #6302] [MERGED] fix(docs): fix Next.js 16 proxy build error issue #6578

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6302
Author: @DimplesY
Created: 11/25/2025
Status: Merged
Merged: 11/25/2025
Merged by: @himself65

Base: canaryHead: patch-2


📝 Commits (1)

  • ebdc603 fix(docs): fix Next.js 16 proxy build error issue

📊 Changes

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

View changed files

📝 docs/content/docs/integrations/next.mdx (+0 -1)

📄 Description

image

When config.runtime = 'nodejs' is configured in the proxy file, the build fails。

The official documentation mentions that there is no runtime configuration in proxy:
https://nextjs.org/docs/app/api-reference/file-conventions/proxy#runtime


Summary by cubic

Removed runtime: "nodejs" from the Next.js proxy example to prevent build failures in Next.js 16. This aligns the docs with Next.js guidance that proxy files do not support a runtime config.

Written for commit ebdc6032d3. Summary will update automatically on new commits.


🔄 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/6302 **Author:** [@DimplesY](https://github.com/DimplesY) **Created:** 11/25/2025 **Status:** ✅ Merged **Merged:** 11/25/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `patch-2` --- ### 📝 Commits (1) - [`ebdc603`](https://github.com/better-auth/better-auth/commit/ebdc6032d3f3e4afcc9c5cd29f849ca01b04a31f) fix(docs): fix Next.js 16 proxy build error issue ### 📊 Changes **1 file changed** (+0 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/integrations/next.mdx` (+0 -1) </details> ### 📄 Description <img width="1142" height="640" alt="image" src="https://github.com/user-attachments/assets/d2dee112-a4fd-430a-bf4a-6dc68d140a46" /> When config.runtime = 'nodejs' is configured in the proxy file, the build fails。 The official documentation mentions that there is no runtime configuration in proxy: https://nextjs.org/docs/app/api-reference/file-conventions/proxy#runtime <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Removed runtime: "nodejs" from the Next.js proxy example to prevent build failures in Next.js 16. This aligns the docs with Next.js guidance that proxy files do not support a runtime config. <sup>Written for commit ebdc6032d3f3e4afcc9c5cd29f849ca01b04a31f. Summary will update automatically on new commits.</sup> <!-- 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 13:03:57 -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#6578