Does XDN provide some kind of CURRENT_HOST / CURRENT_ENV variables, which will represent url to current deployment at build time ?
No, but all variables configured on the target environment are present at build time when you run xdn deploy
with --token
, so you can put whatever you want there.