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)) {