fix: correct condition for MEETUP_SKIP_LOGIN environment variable in middleware
All checks were successful
container-scan / Container Scan (pull_request) Successful in 2m23s
docker-build / docker (pull_request) Successful in 7m35s

This commit is contained in:
Maximilian Liebmann 2025-05-08 13:21:28 +02:00
parent 6a076c0b93
commit 97ea28f588

View file

@ -4,7 +4,7 @@ export default auth((req) => {
if ( if (
!req.auth && !req.auth &&
req.nextUrl.pathname !== '/login' && req.nextUrl.pathname !== '/login' &&
process.env.MEETUP_SKIP_LOGIN === 'true' process.env.MEETUP_SKIP_LOGIN !== 'true'
) { ) {
const newUrl = new URL('/login', req.nextUrl.origin); const newUrl = new URL('/login', req.nextUrl.origin);
return Response.redirect(newUrl); return Response.redirect(newUrl);