extension-cli
extension-cli copied to clipboard
Debug vs prod configuration support
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.
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.
+1 on this. Would be great to deal with it like that at build time to be passed in.