src/applications/proxy-rewrite/redirects/index.js
Function redirectIfNecessary
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const redirectIfNecessary = currentWindow => {
// Check if the route matches an absolute cross-domain redirect.
const absoluteCrossDomainRedirects = crossDomainRedirects?.filter(
redirect => !redirect?.catchAll && !redirect?.isToSubdomain,
);