fix: protect correct routes

This commit is contained in:
Riccardo
2024-06-26 14:44:57 +02:00
parent 55983d786c
commit 7a9cbcda02
5 changed files with 1 additions and 1 deletions

View File

@@ -3,5 +3,5 @@ import { withMiddlewareAuthRequired } from '@auth0/nextjs-auth0/edge';
export default withMiddlewareAuthRequired();
export const config = {
matcher: ['/api/:path*', '/module/:path*', '/user']
matcher: ['/api/protected/:path*', '/module/:path*', '/user']
};