Environment variables in liquid templates

We have a custom auth0 template for our login page, but there are some hardcoded links in there and we recently got in trouble when uploading the template to prod with urls that worked in dev.

We’re thinking of maintaining two files so we don’t make that mistake again, but is there a way to use an environment variable in the liquid template to get the right urls? That would be a lot easier.