Change rewrite/proxy rules programatically

I currently have a setup where we dynamically deploy preview versions of our app to Netlify. For some specific tests we may need to point to a different version of an API that the address set via proxy using the [[redirects]] section of the .toml file.

Would there be a programatic way (CLI/API) that we can change the redirect rules without having to deploy the entire site again?

Hey @felipeplets

The short answer is no.

Deploys are immutable. The only way to change the redirects, headers, or other files, is to create a new deploy.

1 Like