noob saibotN
Convex Community2y ago
3 replies
noob saibot

Turborepo cache issue: Convex not deploying into production

I'm hosting my app on vercel. I'm observing that when I merge a feature branch into main and trigger a production build on vercel, convex deploys the changes into the dev environment and not in production (though I've set a CONVEX_DEPLOY_KEY for production). Here is the log of the automatically triggered production build:
Deployed Convex functions to https://joyous-goldfinch-366.convex.cloud // <-- this is the dev env.

But if I redeploy manually (from the vercel dashboard), then my changes are properly deployed into production. Here is the log of the manual redeployment:
Deployed Convex functions to https://next-butterfly-210.convex.cloud // <-- this is the production .env

Is this the way it should work? Should I always manually deploy my changes in production or shouldn't it occur automatically every time when vercel builds for production?
Was this page helpful?