One of the key benefits I can see from moving to JSS is the way developers can work with the different tools. In particular the lure of Hot Module Replacement (HMR) adds such a lot of positives for development speed. Therefore its key we don't lose this capability - building the whole JSS project for every change would not be a good solution.
We have a traditional Sitecore setup which relies heavily on <sites>
. Examples being configured as follows:
- www.domain.com <= en-ca
- www.domain.com/fr <= fr-ca
- www.anotherdomain.com <= en-au
- www.anotherdomain.com/fr and www.anotherdomain.com/fr-fr shouldn't work
In the non-jss world we are achieving the /fr
url chunk via config in <sites>
for the french site of: virtualFolder="/fr" physicalFolder="/fr"
When running in headless mode I believe this could be achieved with the configuration of express however how could this be done when doing connected, 'HMR driven development' (jss start:connected
) as this by default always runs localhost:3000