For Workers & Pages, what is the name of the domain?
What is the issue or error you’re encountering
I deployed an Astro 5 website on cloudflare pages, as I have a contact form on that website, I want to implement turnstile for safety. Public environment variables are working correctly, but secrets always come back as null (empty).
What steps have you taken to resolve the issue?
Checked the log to recover the error code of turnstile. Generate a page to see if the secrets could be read within the logs. It is Always coming back as empty.
I confirmed the secret has been correctly added to the project.
I use const TURNSTILE_SECRET_TOKEN = import.meta.env.TURNSTILE_SECRET_TOKEN;
Am I missing something ? Does reading secrets work differently than reading environment variables ?
Not a great help, but it is working locally, just not once deployed on cloudflare pages.
What are the steps to reproduce the issue?
Deploy an Astro project on cloudflare pages that require reading secrets.