Monorepo vercel deploy
Is there a better approach to monorepo deploys on vercel than below. I feel like the CLI should just have a different command to grab the CONVEX_URL?
5 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
I would like to avoid hardcoding CONVEX_URL since we want previews on PR's
GitHub
v1/apps/app/vercel.json at main · get-convex/v1
An open-source starter kit based on Midday. Ported to Convex. - get-convex/v1
Yep was about to mention
--cmd-url-env-var-name
-- without it, npx convex deploy
tries its best to guess which env var to set, but it uses things like "does your package.json have next as a dependency" which probably don't work as well for some of the monorepo setupshey @sshader what if I have three vercel.json files in my monorepo? should I do the deploy in all three?