Schenk
Schenk2mo ago

How to deploy when using Expo for mobile app?

Hey there, I am developing a mobile app with React Native Expo and Convex. I am now ready to submit it to TestFlight and start testing it in a real production environment, but I am not sure how to deploy the convex part of things. I do not have a website / webapp version, it is only a mobile app. Any guidance is much appreciated. Thanks!
5 Replies
Convex Bot
Convex Bot2mo ago
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!
Mattia
Mattia2mo ago
Hi did you figured it out? I'm also looking into this. I think that the normal way with web apps is to replace the build command with convex dev but we can't do that with expo eas. How should we deploy an app with convex on expo eas?
Schenk
SchenkOP2mo ago
Yes, you just need to run npx convex deploy to deploy it, and then change the urls out for the production ones. I think the web app build command just does that for you when you build the app.
Mattia
Mattia2mo ago
OK I figured it out. You can use the eas-build-post-install hook. Simply add the following in your package.json: "eas-build-post-install": "npx convex deploy"
Schenk
SchenkOP2mo ago
Oh, nice, thanks!

Did you find this page helpful?