In our case, both test and prod environments are Azure app services. So currently when we deploy to test:
- I replace the
layoutServiceHostanddeployUrlinscjssconfig.jsonto be the address of QA environment on my local - Run
jss deploy fileson my local - Copy resulting
distfolder to the test environment (cm and cd)
This works, but having to edit a config file manually bothers me as it does not seem like a good and viable solution from a long-term view point & considering having to deploy to prod later too. What are the recommended/other ways to do it? Thank you