React Native Expo Deployment with Convex
Hello,
I am currently developing a react native app with Expo. I’m using EAS to package up my app for production and deployment.
When packaging it up, in the app bundle, should I be including the Convex folder with all the functions code inside? How should I approach this, does it leak the source code of my deployed functions? Should I be excluding the convex folder / parts of the convex folder?
Any advice welcome
7 Replies
hi, did you find the solution ? I am in the same position. I am ready to build but I don't really know where to put the "npx convex dev" command
@citrus this sounds unrelated, could you open a new issue? Sounds like it might be helpful to watch a video like https://www.youtube.com/watch?v=vaQZYRSiimI to learn about using the terminal.
Web Dev Cody
YouTube
A quick start guide for using Convex with Next.js
If you're looking to learn more about convex, check them out at https://convex.dev
Convex is the sponsor of the hackathon I'm running, but technically did not sponsor this video specifically. I just wanted to make some resources to help people start learning about convex so they can feel confident in contributing in the hackathon.
00:00 Next ...
@Vysetrium In the app bundle there's no need to include the Convex folder, yes I would exclude it.
Would you know how to modify the imports for the generated functions in this case. If I just remove the convex folder it will definitely break my imports across my app
@Vysetrium Oh I wouldn't remove the convex folder from the project, just the bundle
it's probably already removed by the Expo bundler
Can you inspect the bundle? As long as you're only importing from
convex/_generated/api.js
everything else should already be goneYou’re right , it isn’t even related now that I look at it again. My bad. Simply had to run npx convex deploy instead of dev.
Thank you.
Should I delete from here ?
No need to delete, glad you worked it out