Are DEPLOY_URL, DEPLOY_PRIME_URL available outside of netlify.toml?

Hey @tettoffensive,
Yup, you’ll have to write DEPLOY_PRIME_URL to a file that your function then loads. Here’s how someone’s writing the variable to a file in a prebuild script, then loading that file in their function:

Definitely not ideal, but wanted to share since it’s an actual implementation you can take a look at.

1 Like