Coffee11
Coffee117mo ago

Production with react-native?

Any tutorial similar to nextjs deployment?
7 Replies
Riki
Riki7mo ago
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.
Coffee11
Coffee11OP7mo ago
I hope convex will publish a tutorial "The proper way to make production react-native apps with convex"
No description
Coffee11
Coffee11OP7mo ago
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.
Riki
Riki7mo ago
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.
Coffee11
Coffee11OP7mo ago
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
lee
lee7mo ago
the npx convex deploy command doesn't need to run in a build environment like vercel. You can run it on any laptop with
CONVEX_DEPLOY_KEY="prod:..." npx convex deploy
CONVEX_DEPLOY_KEY="prod:..." npx convex deploy
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)
Coffee11
Coffee11OP7mo ago
thank you @lee and @Riki appreciate you both

Did you find this page helpful?