Adding a 2nd developer on covex issues/questions
My business partner and I are going through merge hell. So we have a mono-repo that we finally merged our work with a covex branch ive spent weeks on.
0. tech stack is convex w/ents and convex-helpers, clerk beta latest, nextjs etc.
1. The site dev builds without errors but there is lots of false positive typescript complaints about convex-ents and convex/values but no errors from npx dev convex , vscode acts as if the packages are not installed. (but this can be triggered by random other packages maybe?)
2. I learned that apparently we should each have our own connection to convex, so my credentials got put on his .env.local for a moment. (corrected that fast without noticeable issue)
3. Fixed all that, however ctx.viewer is always empty, he can signup,signin. webhooks run etc.
4. Should we be sharing the development database with each-other?
5. His clerk webhook signin is going to my convex url (i think) and into our shared dev database.
6. We pushed this very broken looking repo
7. I do a fresh install on ubuntu linux with zero problems what so ever.
8. His system is a mac.
9. Is it possibly a clerk issue? should he also have his own clerk for dev? 10. Best practices? 11. the tokenidentifier looks right, its getting stored, a quick look at all session data looked good.
9. Is it possibly a clerk issue? should he also have his own clerk for dev? 10. Best practices? 11. the tokenidentifier looks right, its getting stored, a quick look at all session data looked good.
4 Replies
Thanks for the feedback!
4. I'd check your tsconfig.json files (do you have multiple? Which one is VS Code using, which one is your build tool)
5. No, you should not share your development database. You can use snapshot import and export to shuffle data in between if you need to. Documented here: https://docs.convex.dev/production#typical-team-development-workflow
6. You should each have your own Clerk dev instance, and your own JWT credentials (issuer url)
10. ditto
11. I assume you've seen the monorepo template? https://www.convex.dev/templates/monorepo
Templates
The backend application platform with everything you need to build your product.
Deploying Your App to Production | Convex Developer Hub
Convex is built to serve live, production app traffic. Here we cover how to
4. One would think if i use the same files it would replicate on my side.. 😅
5-6: making assumptions 🔥 to fill in knowledge gaps
8: yeah we wanted to make it work first in /app/ before moving to a package like in the example.
Thank you!
using the wrong language.. again: is there best practices for having a 2nd developer
Convex AI Bot
The documents provided do not specifically address best practices for having a second developer on a Convex project. However, it's mentioned that each developer on a team can set up their own personal development deployment. This practice allows each developer to test changes independently before they're deployed to production.
I didn't look in production section as i'm very much in the development mindset. Obviously even this result is lagging far behind just visiting the page above: what are best practices for teams
Convex AI Bot
The provided documents outline several best practices for teams in Convex:
1. Projects are organized by team. This helps to share access to those projects with other members of the team.
2. You can switch between teams or create a new team via the team switcher located at the top of the Convex dashboard.
3. You can change the name of a team or invite new members to a team by clicking on the Settings navigation button while on the dashboard landing page.
4. You can invite or remove members from your team using the members settings page.
However, these documents do not provide specific best practices for workflow or collaboration within a team.
Anyway the results of are interest to me as just a mini-case study as this is one of the problems we are solving big time. Language
Yeah, the bot is lagging behind the docs (that page is new)
Bot updated!
