Inital Frontend Code

This commit is contained in:
2025-03-29 12:22:57 -04:00
parent 08e574daf6
commit 04c2c57fc7
19 changed files with 489 additions and 0 deletions

18
React/src/middleware.ts Normal file
View File

@@ -0,0 +1,18 @@
import type { NextRequest } from "next/server";
import { auth0 } from "./lib/auth0";
export async function middleware(request: NextRequest) {
return await auth0.middleware(request);
}
export const config = {
matcher: [
/*
* Match all request paths except for the ones starting with:
* - _next/static (static files)
* - _next/image (image optimization files)
* - favicon.ico, sitemap.xml, robots.txt (metadata files)
*/
"/((?!_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)",
],
};