You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to the variables you choose to declare, Netlify has a number of pre-defined variables built in. The following variables are automatically set for your builds, and their values are not changeable.
Describe the bug
Netlify
DEPLOY_URL
andDEPLOY_PRIME_URL
areundefined
in deploy preview.Not sure if this is the correct repository. If its not please let me know which one is?
Steps to reproduce
Watch the ___netlify-handler function logs and you will see it prints
undefined
for both variables yet Netlify is supposed to auto-configure these env variables for you: https://docs.netlify.com/configure-builds/environment-variables/#deploy-urls-and-metadataCode
https://github.com/watadarkstar/repro-nextjs-netlify-deploy-url/blob/main/pages/api/hello.js
Configuration
Please enter the following command in a terminal and copy/paste its output:
The text was updated successfully, but these errors were encountered: