I know we can use
$DEPOY_URL and friends inside
netlify.toml's build command settings.
Ideally I would love to be able to use such variables from within functions.
My use case requires calling an absolute permalink from within a Lambda Function and I’d rather use a dynamic solution à la
process.env.DEPLOY_PRIME_URL which would securely use the right URL regardless of context.