This adds an exclude option which accepts a list of patterns for which redirection should be disabled.
Usage
{
exclude: [
'^/health$',
/^\/posts\/\d+/
]
}
Use case
I needed this because we're deploying Nuxt apps on Kubernetes clusters where the Ingress is secured but not the pod themselves, which caused the readiness and liveness probes to fail when trying to access the /health endpoint which was being redirected on its HTTPS equivalent.
This adds an
exclude
option which accepts a list of patterns for which redirection should be disabled.Usage
Use case
I needed this because we're deploying Nuxt apps on Kubernetes clusters where the Ingress is secured but not the pod themselves, which caused the readiness and liveness probes to fail when trying to access the
/health
endpoint which was being redirected on its HTTPS equivalent.Also, code has been linted using Standard rules.