mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-06 04:31:50 +02:00
🔨 Fix middleware config
This commit is contained in:
parent
aebc773339
commit
177daa2aa1
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ export async function middleware(req: NextRequest) {
|
||||||
);
|
);
|
||||||
|
|
||||||
const isProtectedPathDueToRequiredAuth =
|
const isProtectedPathDueToRequiredAuth =
|
||||||
process.env.AUTH_REQUIRED &&
|
process.env.AUTH_REQUIRED === "true" &&
|
||||||
!publicPaths.some((publicPath) =>
|
!publicPaths.some((publicPath) =>
|
||||||
req.nextUrl.pathname.startsWith(publicPath),
|
req.nextUrl.pathname.startsWith(publicPath),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue