1

I have downloaded jss proxy and configured my site to run in headless mode. How to configure multiple sites with different domains

1 Answer 1

1

Are you planning multiple jss app for multiple sites or single jss app for multiple sites?

First scenario, take different builds and keep it in different folders in the proxy server. Then define same number of config (config.js).

Install vhost (npm install vhost) in the proxy server , which can be used to conditionally take config to be executed based on the hostname.

2
  • Thanks @Renjit, We have single jss app with multiple sites Commented Jan 5, 2021 at 12:26
  • For the second scenario (jss app with multiple site), defining multiple configs for each site with different api host. Tried to use same api host for all sites with query string sitename 'sc_site' but the General link has issue, its generating urls with sitecore host name. Is it mandatory to have separate api host for all sites? Commented Jan 5, 2021 at 12:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.