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
As part of the changes for https://github.com/microbiomedata/nmdc-field-notes/issues/92, I added
cleartext: true
tocapacitor.config.js
in order to supporthttp://
requests while working with a localnmdc-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 thatcleartext: true
is only set in the dev environment. The Capacitor docs lay out the process here: https://capacitorjs.com/docs/guides/environment-specific-configurations