-
Notifications
You must be signed in to change notification settings - Fork 363
Closed
Description
Problem
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
This error is thrown by this validation code:
https://github.com/get-convex/convex-backend/blob/main/crates/common/src/auth.rs#L208-L220
Workaround
As a workaround, I can set the env variable like this CONVEX_SITE_ORIGIN=http://127.0.0.1:3211
.
Questions
- How can this be resolved so that not only
localhost
is supported as a domain for local development without HTTPS? - But are there any side effects if I use
http://site.convex.local
in the frontend React app, but set env variableCONVEX_SITE_ORIGIN=http://127.0.0.1:3211
in docker container?
fullheart
Metadata
Metadata
Assignees
Labels
No labels