auth: enabled anonymous access to policy and terms page

This commit is contained in:
2024-01-16 12:56:35 +01:00
parent 226beb974f
commit 459b93c1fa

View File

@@ -9,5 +9,5 @@ export default auth; // middleware will call NextAuth's `auth` method, which wil
export const config = {
// midleware will NOT be called for paths: ['/api/auth/*', '/_next/static/*', '/_next/image*']
matcher: ['/((?!api|_next/static|_next/image|.*\\.png$).*)'],
matcher: ['/((?!api|policy|terms|_next/static|_next/image|.*\\.png$).*)'],
};