Francismiko
Francismiko2y ago

How can I still deploy locally with Vercel?

My project is hosted on vercel, but I now have a need to deploy the convex synchronization data of prod first. The code cannot be submitted for synchronization because it is still under development. But I tried the local deployment and it will appear: npx convex deploy ✖ Vercel build environment detected but CONVEX_DEPLOY_KEY is not set. Set this environment variable to deploy from this environment. I have put the deploy key in .env.local. Is there any solution?
2 Replies
Francismiko
FrancismikoOP2y ago
Ah~ When I temporarily removed the relevant configuration files and variables from vercel in env locally, the problem was solved. I have to say that the development team has done very carefully in these details, reducing the possibility of mistakes caused by many mistakes in development 🥰
Michal Srb
Michal Srb2y ago
Releveant docs are here, covering how to run deploy locally: https://docs.convex.dev/production/project-configuration#production-deployment Let us know if you have any feedback for them. Glad you figure it out!

Did you find this page helpful?