#Production with react-native?
1 messages · Page 1 of 1 (latest)
Hello @cursive grail , 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
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
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/
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
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)
thank you @tired junco and @long beacon