7 Replies
Hello @Coffee11 , your question is a bit large, what issue are you facing?
App deployment is not related to convex, except you will need to handle the different convex environments in your app with a tool like https://github.com/lugg/react-native-config
GitHub
GitHub - lugg/react-native-config: Bring some 12 factor love to you...
Bring some 12 factor love to your mobile apps! Contribute to lugg/react-native-config development by creating an account on GitHub.
I hope convex will publish a tutorial "The proper way to make production react-native apps with convex"
We are planning to go live with Convex but can't find proper documentation similar to this approach https://docs.convex.dev/production/hosting/vercel
Using Convex with Vercel | Convex Developer Hub
Host your frontend on Vercel and your backend on Convex.
Thing is that with mobile apps, you can not somehow "host" your mobile app remotely and have a deploy button on convex. You need to pass through Apple or Google deployment. See this expo documentation for more details: https://docs.expo.dev/deploy/submit-to-app-stores/
Expo Documentation
Submit to app stores
Learn how to submit your app to Google Play Store and Apple App Store from the command line with EAS Submit.
ohh sorry I was referring to convex how it should be deployed in prod? Is there a process like the deployment in nextjs?
sorry for the confusion my bad
I didn't explain it well
the
npx convex deploy
command doesn't need to run in a build environment like vercel. You can run it on any laptop with
and this will deploy to prod convex.
In order to make the app talk to the prod convex deployment, you can set the url in .env to the production url, which should be different from the url in .env.local (this is fine because the production url is not secret)thank you @lee and @Riki
appreciate you both