microbiomedata / nmdc-field-notes

Mobile app for metadata collection on the go
https://fieldnotes.microbiomedata.org/
Other
1 stars 0 forks source link

Set up separate dev and prod environment configurations #119

Open pkalita-lbl opened 3 weeks ago

pkalita-lbl commented 3 weeks ago

As part of the changes for https://github.com/microbiomedata/nmdc-field-notes/issues/92, I added cleartext: true to capacitor.config.js in order to support http:// requests while working with a local nmdc-server instance. This setting is not advised for use in production. Capacitor has the ability to have different configurations for different environments. We should set up separate dev and prod environments so that cleartext: true is only set in the dev environment. The Capacitor docs lay out the process here: https://capacitorjs.com/docs/guides/environment-specific-configurations