A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth replying to this from @chriscoyier
@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!

My tweets and posts live here on my own domain these days.
You can explore them here and follow me on Mastodon instead of Twitter where I'm not currently active.