From 7b6733bc09e5109dc2255bb0204efcf2ca7feb5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luc=C3=A0s?= Date: Tue, 11 Apr 2023 22:01:24 +0200 Subject: [PATCH] fix: edit protected path from login Took 2 minutes --- src/middleware.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/middleware.ts b/src/middleware.ts index 7974308..37ed824 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -1,9 +1,10 @@ -export { default } from "next-auth/middleware" +export {default} from 'next-auth/middleware'; export const config = { matcher: [ - "/dashboard", - "/profile", - '/chat/:path*' - ] -} \ No newline at end of file + '/dashboard', + '/userProfile', + '/chat', + '/chat/*', + ], +}; \ No newline at end of file