Does any one have any ideas or examples on how to handle multiple apps pointing to different environments (dev, staging and production) in an ExpoKit app where the Javascript bundle is self-hosted?
Following on from the answer in this thread, the question is how do you promote a javascript bundle from staging to production?
Below are a few ways we can think to tackle the problem. Solution two being the most favourable.
Solution One: Is that we can have multiple URLs to emulate the flow used in release channels. However we’d have to re-run expo export —public-url http://OUR_PROD_URL
when we want to promote a build from staging to production. To us this doesn’t sound ideal as it introduces margin for error.
Solution Two: We still use multiple URLS however we use a script to read in the ios-index.json
and spit out a new version with updated URLs. Meaning the build in beta is just a straight swap to production.