@chriscoyier @cloudinary @Netlify Not yet. I personally do similar things to you in using my template logic and an env var to give the right path.
But with if redirects could be per build context in netlify.toml, you could leave the HTML the same and toggle one line in your redirect.
Voting for that feature!