-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate multiple environment support #3303
Comments
It depends on what do you need from the multiple environments, if it's just about the urls the app points to, then that should be a framework thing, not a Capacitor thing, whatever they build for the environment they build would be in the webDir folder and Capacitor will use that. If they want different bundle identifier/app id, icons, splash, version, etc, then the proper way would be to do it as native projects do, adding a new app target on iOS and a new product flavor (build variant) on Android. |
@jcesarmobile Is building different targets/build variants supported by Appflow? |
This issue was created in reference to this discussion:
This has been accomplished in #3756 and will be shipped in Capacitor 3. |
is there documentation on this? i can find some docs on |
@jayenashar I think the idea is to export different configs from a single |
I have a question that is somewhat along the same lines of this topic, but if it deserves its own thread, please let me know and I can open a new issue. I am working on converting an PWA to a native app with Capacitor and all is working extremely well so far.
When publishing an android app and uploading the .aab file to google play, I have hardcoded the staging endpoint (as the localhost endpoint obviously wouldn't work). However, if everything is approved, we cannot publish this version to production because it still uses the staging endpoint. I've read that the best way to manage this is to create two app ID's:
But in capacitor.config.json, we can only add one addId. Is there any way with Capacitor to manage multiple environments? |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
What can Capacitor do to better support multiple environments such as dev, staging, and prod?
Is this a tooling problem or a documentation problem?
ref: #3298
The text was updated successfully, but these errors were encountered: