Devit
Devit15mo ago

Vercel build error

Same error bro ):
No description
6 Replies
erquhart
erquhart15mo ago
Did you add your auth token to env vars?
Devit
DevitOP15mo ago
Do you mean this vars?
No description
ian
ian15mo ago
Using Convex with Vercel | Convex Developer Hub
Host your frontend on Vercel and your backend on Convex.
erquhart
erquhart15mo ago
yeah, have to set CONVEX_DEPLOY_KEY
Devit
DevitOP15mo ago
Yeap, everything up to date. While I am using Clerk development vars working goods, but in production mode getting error. That's all I fix it. Thanks, the problem was auth.config.js file while set domain property. We should set it without proccess.env
ian
ian15mo ago
sg - glad it's working! for the next one let's put it in #support-community so folks can easily search for it in case someone else sees the same thing Just as a heads up @Devit and others: one reason to use it as process.env is so you can use a different domain in production and in dev. Your Clerk configuration is probably a development-only config. If you use it production, it'll stop working once you hit 500 users (believe me, I ran into this accidentally recently). So by doing process.env you can configure it differently in dashboard.convex.dev project settings for each environment differently For preview deploys you can set a "default env var"

Did you find this page helpful?