Docs say "middleware" but NextJS middleware is now proxy #2199

Closed
opened 2026-03-13 09:33:53 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @adriancuadrado on GitHub (Oct 24, 2025).

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

https://nextjs.org/docs/app/api-reference/file-conventions/proxy#migration-to-proxy

Current vs. Expected behavior

Docs say middleware but NextJS changed middleware to proxy so it makes sense to have that reflected in better-auth docs too.

This is where it says middleware instead of proxy: https://www.better-auth.com/docs/integrations/next#middleware

What version of Better Auth are you using?

N/A

System info

{
  "system": {
    "platform": "linux",
    "arch": "x64",
    "version": "#1 SMP PREEMPT_DYNAMIC Debian 6.12.48-1 (2025-09-20)",
    "release": "6.12.48+deb13-amd64",
    "cpuCount": 4,
    "cpuModel": "Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz",
    "totalMemory": "6.95 GB",
    "freeMemory": "0.87 GB"
  },
  "node": {
    "version": "v22.20.0",
    "env": "development"
  },
  "packageManager": {
    "name": "npm",
    "version": "10.9.3"
  },
  "frameworks": [
    {
      "name": "next",
      "version": "16.0.0"
    },
    {
      "name": "react",
      "version": "19.2.0"
    }
  ],
  "databases": [
    {
      "name": "pg",
      "version": "^8.16.3"
    }
  ],
  "betterAuth": {
    "version": "^1.3.30",
    "config": null
  }
}

Which area(s) are affected? (Select all that apply)

Documentation

Auth config (if applicable)

N/A

Additional context

No response

Originally created by @adriancuadrado on GitHub (Oct 24, 2025). ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce https://nextjs.org/docs/app/api-reference/file-conventions/proxy#migration-to-proxy ### Current vs. Expected behavior Docs say middleware but NextJS changed middleware to proxy so it makes sense to have that reflected in better-auth docs too. This is where it says middleware instead of proxy: https://www.better-auth.com/docs/integrations/next#middleware ### What version of Better Auth are you using? N/A ### System info ```bash { "system": { "platform": "linux", "arch": "x64", "version": "#1 SMP PREEMPT_DYNAMIC Debian 6.12.48-1 (2025-09-20)", "release": "6.12.48+deb13-amd64", "cpuCount": 4, "cpuModel": "Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz", "totalMemory": "6.95 GB", "freeMemory": "0.87 GB" }, "node": { "version": "v22.20.0", "env": "development" }, "packageManager": { "name": "npm", "version": "10.9.3" }, "frameworks": [ { "name": "next", "version": "16.0.0" }, { "name": "react", "version": "19.2.0" } ], "databases": [ { "name": "pg", "version": "^8.16.3" } ], "betterAuth": { "version": "^1.3.30", "config": null } } ``` ### Which area(s) are affected? (Select all that apply) Documentation ### Auth config (if applicable) ```typescript N/A ``` ### Additional context _No response_
GiteaMirror added the documentation label 2026-03-13 09:33:53 -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#2199