🔨 Fix middleware config

This commit is contained in:
Luke Vella 2023-07-20 19:30:35 +01:00
parent aebc773339
commit 177daa2aa1

View file

@ -22,7 +22,7 @@ export async function middleware(req: NextRequest) {
);
const isProtectedPathDueToRequiredAuth =
process.env.AUTH_REQUIRED &&
process.env.AUTH_REQUIRED === "true" &&
!publicPaths.some((publicPath) =>
req.nextUrl.pathname.startsWith(publicPath),
);