Thanks for reaching out. To do that, create 3 variables with the same name and assign to each a value according the the scoped environment (see attached screenshot)
Then use that variable to resolve the virtual directory name during your deployment. That variable value will change depending on the environment you are deploying to.