Initial commit

This commit is contained in:
2026-03-18 18:26:24 +08:00
commit c784d07796
60 changed files with 3756 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import { withMiddlewareAuthRequired } from '@auth0/nextjs-auth0/edge';
import { NextRequest, NextResponse } from 'next/server';
export default function middleware(request: NextRequest) {
if (request.nextUrl.pathname.startsWith('/admin')) {
return withMiddlewareAuthRequired()(request, {} as never);
}
return NextResponse.next();
}
export const config = {
matcher: ['/admin/:path*'],
};