fullheart
fullheart2d ago

Local development with none-localhost domain without HTTPS as "CONVEX_SITE_ORIGIN"?

For the locally hosted Convex backend, I use the domain http://site.convex.local instead of http://127.0.0.1:3211 for CONVEX_SITE_ORIGIN during development. Unfortunately, I get this error with npx convex dev:
The pushed auth config is invalid: Invalid provider domain URL ‘http://site.convex.local’: must use HTTPS
The pushed auth config is invalid: Invalid provider domain URL ‘http://site.convex.local’: must use HTTPS
This error is thrown by this validation code: https://github.com/get-convex/convex-backend/blob/main/crates/common/src/auth.rs#L208-L220 QUESTION 1 How can this be resolved so that not ONLY localhost is supported as a domain for local development without HTTPS? As a workaround, I can set the env variable like this CONVEX_SITE_ORIGIN=http://127.0.0.1:3211. QUESTION 2: But are there any side effects if I use http://site.convex.local in the frontend?
1 Reply
Convex Bot
Convex Bot2d ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!

Did you find this page helpful?