fix: use export default in proxy.js for Next.js 16 middleware detection

Next.js 16 requires a default export to register middleware. The named
re-export produced an empty middleware manifest, so the auth guard never
ran and the dashboard showed a white "Loading..." page.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zocomputer
2026-06-13 09:57:20 +07:00
committed by decolua
parent 9406bd1806
commit bbc204b601

View File

@@ -1,4 +1,8 @@
export { proxy } from "./dashboardGuard";
import { proxy as dashboardProxy } from "./dashboardGuard";
export default async function proxy(request) {
return dashboardProxy(request);
}
export const config = {
matcher: ["/((?!_next/static|_next/image|favicon\\.ico).*)"],