Skip to content

Commit

Permalink
adds /my-projects page to auth middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgnlez committed Dec 19, 2024
1 parent fa0b568 commit 0e10d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 0e10d69

Please sign in to comment.