mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-02 18:51:52 +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 =
|
||||
process.env.AUTH_REQUIRED &&
|
||||
process.env.AUTH_REQUIRED === "true" &&
|
||||
!publicPaths.some((publicPath) =>
|
||||
req.nextUrl.pathname.startsWith(publicPath),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue