For Workers & Pages, what is the name of the domain?
valleytoprepair.com
What is the error message?
No build errors
What is the issue or error you’re encountering
Environment variables not passing to the live site.
What steps have you taken to resolve the issue?
The environment variables are set in Pages setting:
GOOGLE_ANALYTICS_API_KEY
GOOGLE_MAPS_API_KEY
GOOGLE_RECAPTCHA_KEY
FORMSPREE_ENDPOINT
HUGO_VERSION
In my hugo.toml I have set them as below:
[security]
[security.funcs]
getenv = [“^GOOGLE_ANALYTICS_API_KEY$”, “^GOOGLE_MAPS_API_KEY$”, “^GOOGLE_RECAPTCHA_KEY$”, “^FORMSPREE_ENDPOINT$”]
googleRecaptchaKey = “{{ getenv ‘GOOGLE_RECAPTCHA_KEY’ }}”
googleMapsApiKey = “{{ getenv ‘GOOGLE_MAPS_API_KEY’ }}”
[services.googleAnalytics]
id = “{{ getenv ‘GOOGLE_ANALYTICS_API_KEY’ }}”
formspree_action = “{{ getenv FORMSPREE_ENDPOINT
}}”