#Production with react-native?

1 messages · Page 1 of 1 (latest)

cursive grail
#

Any tutorial similar to nextjs deployment?

long beacon
cursive grail
#

I hope convex will publish a tutorial "The proper way to make production react-native apps with convex"

cursive grail
long beacon
#

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/

cursive grail
#

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

tired junco
#

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)

cursive grail
#

thank you @tired junco and @long beacon