change else to else if
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user