In our case, both test and prod environments are Azure app services. So currently when we deploy to test:
- I replace the
layoutServiceHost
anddeployUrl
inscjssconfig.json
to be the address of QA environment on my local - Run
jss deploy files
on my local - Copy resulting
dist
folder 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