Adding custom env variables
Control allows to pass-through any environment variables that
will be accessible in your code at build time.
To add custom environment variables, navigate to the "Development"
tab from your Project Dashboard and click "Add new variable".
The next time the project gets built, it will use them along with
any built-in variables.
Built-in variables
Control sets a couple of variables for you automatically:
CNTRL_API_URL— the API endpoint used to fetch your project's
content at build time. Always set.SITE_URL— optional override for the canonical site origin used
insitemap.xml,robots.txt, and<link rel="canonical">tags.
See SEO for details.