auth: enabled anonymous access to policy and terms page
This commit is contained in:
@@ -9,5 +9,5 @@ export default auth; // middleware will call NextAuth's `auth` method, which wil
|
|||||||
|
|
||||||
export const config = {
|
export const config = {
|
||||||
// midleware will NOT be called for paths: ['/api/auth/*', '/_next/static/*', '/_next/image*']
|
// 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$).*)'],
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user