INNER CODE UNIT · TypeScript
proxy
Lorenalgm/DevChallenge · version/proxy.ts:3
export async function proxy(request: NextRequest) {
// Since authentication is not required for this project,
// just return the normal response without any auth checks
return NextResponse.next();
}
export const config = {
matcher: [
/*
* Match all request paths except:
* - _next/static (static files)
* - _next/image (image optimization files)
* - favicon.ico (favicon file)
* - images - .svg, .png, .jpg, .jpeg, .gif, .webp
* Feel free to modify this pattern to include more paths.
*/
"/((?!_next/static|_next/image|favicon.ico|.*\\.(?:svg|png|jpg|jpeg|gif|webp)$).*)",
],