auth config file must include a list of provider credentials: Invalid provider domain URL
Using Convex 1.11.0 and trying to deploy a Next app to Vercel. The error I'm getting is:
✖ Error: Unable to push deployment config to https://___.convex.cloud
Error fetching POST https://___.convex.cloud/api/push_config 400 Bad Request: InvalidAuthConfig: Hit an error while pushing:
The pushed auth config is invalid: auth config file must include a list of provider credentials: Invalid provider domain URL "https://prod:___|___": invalid port number
I've tried to deploy a few times, being diligent about copy/pasting the correct CONVEX_DEPLOY_KEY. Curious any advice?
2 Replies
This sounds like your
auth.config.js
/ auth.config.ts
might contain something like domain: process.env.CONVEX_DEPLOY_KEY
which isn't a valid value for a domain. Or domain: process.env.SOME_OTHER_ENV_VAR
where the value of that env var in your production environment is not a URL
This is usually a clerk or auth0 URL (e.g. domain: "https://robust-maggot-29.clerk.accounts.dev",
)Yes, I'm foolish — I wasn't careful and copy/pasted the prod key into the clerk issuer domain
Thanks so much