@migrating-middleware-to-proxy
Next.js 16 将 middleware.ts 重命名为 proxy.ts 并将中间件导出重命名为 proxy 。这是具有安全影响的重大更改 (CVE-2025-29927)。