From 0e10d69ede5318df8e243d3d5abbe699e88b6855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Gonz=C3=A1lez=20Mu=C3=B1oz?= Date: Thu, 19 Dec 2024 08:35:57 +0100 Subject: [PATCH] adds /my-projects page to auth middleware --- client/src/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/middleware.ts b/client/src/middleware.ts index 300e8d8d..5d66e5a2 100644 --- a/client/src/middleware.ts +++ b/client/src/middleware.ts @@ -2,7 +2,7 @@ import { NextResponse } from "next/server"; import { NextRequestWithAuth, withAuth } from "next-auth/middleware"; -const PRIVATE_PAGES = /^(\/profile)/; +const PRIVATE_PAGES = /^(\/profile|\/my-projects)/; export default function middleware(req: NextRequestWithAuth) { if (PRIVATE_PAGES.test(req.nextUrl.pathname)) {