extension-cli icon indicating copy to clipboard operation
extension-cli copied to clipboard

Debug vs prod configuration support

Open nkrusch opened this issue 5 years ago • 2 comments

Describe the solution you'd like Enable way to setup project config files that can be easily changed between dev and prod builds, for example, to switch out API endpoints.

nkrusch avatar Aug 20 '20 20:08 nkrusch

Node env variables should be able to handle this. CRA implements a way to inject env variables this way both in js and in HTML files and it requires a specific prefix ref, which are then replaced at build time. Similar approach could work here. It would also need to be documented in user guide.

nkrusch avatar Aug 29 '21 03:08 nkrusch

+1 on this. Would be great to deal with it like that at build time to be passed in.

Gentatsu avatar Jul 04 '23 10:07 Gentatsu