From 459b93c1faddb85f1565740606700179ab9f64cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Dere=C5=BEi=C4=87?= Date: Tue, 16 Jan 2024 12:56:35 +0100 Subject: [PATCH] auth: enabled anonymous access to policy and terms page --- middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware.ts b/middleware.ts index 0971527..be88fbd 100644 --- a/middleware.ts +++ b/middleware.ts @@ -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$).*)'], }; \ No newline at end of file