change else to else if

This commit is contained in:
Danel Kungla
2025-09-09 12:39:00 +03:00
parent 514cb3bf7b
commit ebab0556ba

View File

@@ -182,12 +182,10 @@ function getPatterns() {
return NextResponse.redirect(
new URL(pathsConfig.app.home, req.nextUrl.origin).href,
);
} else {
if (process.env.NODE_ENV === 'production') {
return NextResponse.redirect(
new URL('https://medreport.ee', req.nextUrl.origin).href,
);
}
} else if (process.env.NODE_ENV === 'production') {
return NextResponse.redirect(
new URL('https://medreport.ee', req.nextUrl.origin).href,
);
}
},
},