Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for using .dev.vars instead of .env when deploying with Cloudflare Pages #1639

Open
arkantrust opened this issue Oct 21, 2024 · 0 comments

Comments

@arkantrust
Copy link

Problem:
While integrating Clerk with Astro on Cloudflare Pages using the Cloudflare adapter, I encountered the following error: Publishable key is invalid. This issue occurred because Clerk did not recognize environment variables from .env files. As noted in Astro's documentation, some adapters, like Cloudflare, don't support the getSecret() function, which can cause issues with environment variables.

Solution:
Adding a note in the Clerk documentation for Astro would clarify that Cloudflare Pages requires environment variables to be defined in a .dev.vars file instead of .env. This will help prevent similar issues for developers working with these tools.

Where to Update:
Include this note in the Astro integration section and consider mentioning it in other relevant areas of the documentation.

I’d be happy to submit a pull request to help with this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant