I’m hoping to find a way that I can NOT proxy requests for https://www-staging.getvero.com/resources/html-email-templates/* BUT still proxy all other requests to https://www-staging.getvero.com/resources/*.
Is there some way I can do this? I haven’t been able to figure out an approach that works so hoping someone has tried this before!
This was achieved with the following rules in the netlify.toml:
[[redirects]]
from = "/resources/html-email-templates/*"
to = "/resources/html-email-templates/:splat"
status = 200
[[redirects]]
from = "/resources/*"
to = "https://focused-ride-1a4886.netlify.app/resources/:splat"
status = 200
headers = {X-Vero-Netlify = "true", X-Vero-Proxied = "true"}
This is what I’ve ended up with — and it works nicely!
The community does it again :).
[[redirects]]
from = "/resources/html-email-templates/*"
to = "/resources/html-email-templates/:splat"
status = 200
force = true
[[redirects]]
from = "https://www-staging.getvero.com/resources/*"
to = "https://REDACTED/resources/:splat"
status = 200
headers = {X-Vero-Netlify = "true", X-Vero-Proxied = "true"}