AjayA
Convex Community8mo ago
10 replies
Ajay

Deploying Convex in a Turborepo

I've been following along the guide to deploy Convex to Vercel. Owing to the fact that my repository is a turborepo, I'm finding the deployment instructions a bit confusing. I used Better T-Stack to create my repository. This means that the Convex directory is structured as such:

todo/
├── apps
│   └── web
│       └── src
│           ├── app
│           ├── components
│           │   ├── todo
│           │   └── ui
│           ├── context
│           ├── functions
│           └── lib
├── docs
└── packages
    └── backend
        └── convex
            └── _generated


Now, the guide asks the user to do: npx convex deploy --cmd 'npm run build'which I'm not sure how to manage here. Do I build these two things separately? Ideally I'd like to resolve being able to run a single build instruction (ideally the typical one in a vercel deployment). I've got the entire repo here for anyone to play around with here: https://github.com/ajay-bhargava/todo

Any guidance is appreciated. I'll keep plugging away at this and report back my findings / progress if i make any.
Was this page helpful?