change else to else if
This commit is contained in:
@@ -182,12 +182,10 @@ function getPatterns() {
|
|||||||
return NextResponse.redirect(
|
return NextResponse.redirect(
|
||||||
new URL(pathsConfig.app.home, req.nextUrl.origin).href,
|
new URL(pathsConfig.app.home, req.nextUrl.origin).href,
|
||||||
);
|
);
|
||||||
} else {
|
} else if (process.env.NODE_ENV === 'production') {
|
||||||
if (process.env.NODE_ENV === 'production') {
|
return NextResponse.redirect(
|
||||||
return NextResponse.redirect(
|
new URL('https://medreport.ee', req.nextUrl.origin).href,
|
||||||
new URL('https://medreport.ee', req.nextUrl.origin).href,
|
);
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user