Convex in a monorepo package
I want to install convex as a package in my monorepo under packages/convex but when i run it creates a subfolder called convex. Is there a way o have it create files in my current directory if I am in packages/convex?
4 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!
check this out! https://docs.convex.dev/production/project-configuration#changing-the-convex-folder-name-or-location
Project Configuration | Convex Developer Hub
Configure your Convex project for development and production deployment using convex.json, environment variables, and deployment settings.
When I add and run I get these errors but when I remove everything works perfectly fine.
So if there is a way to fix that great but I have just compromised and set it to so I am doing good.
In my monorepo, I went with
packages/backend
and then running npx convex dev
in that folder created packages/backend/convex
. This worked for me as I need to have more shared stuff in that package than just Convex. I first thought that I'd have one package for Convex and one for the other stuff, but combining them into the one backend
package has worked out fine.