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>
10 lines
236 B
JavaScript
10 lines
236 B
JavaScript
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).*)"],
|
|
};
|