Michal Srb
Michal Srb16mo ago

Different convex folder

Can I put my backend source code files into a folder that's called something else than "convex"?
1 Reply
Convex AI Helper Bot
Yes, you can put your backend source code files into a folder with a different name than "convex". To do this, you can modify the convex.json file at the root of your project. For example, if you're using Create React App and want to put your backend source code files in a folder named "backend", you can update the convex.json file like this:
{
"functions": "src/backend/"
}
{
"functions": "src/backend/"
}
This configuration tells Convex to look for backend source code files in the "src/backend/" directory. Make sure to update the folder path accordingly based on your desired folder name. Check out these docs: https://docs.convex.dev/production/project-configuration