You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This approach is common when using a international B2C Commerce site to serve a number of different countries.
It would likely also be nessecary to add additional metadata to site.js to allow the correct locacle to be selected, though perhaps that could also live in a more complex "alias".
@johnboxall In pwa-kit we do have util to build the url based on this settings, I am wondering if we allow this settings, how should we know which alias to choose from this list to build the urls here?
E.g When the site is RefArchGlobal, how can we determine which aliases ('de', 'mx', or 'fr')to pick here? 🤔
The PWA Kit's support for Multiple B2C Commerce sites could be improved by allowing sites to define an array of aliases rather than one:
TODAY
TOMORROW
This approach is common when using a international B2C Commerce site to serve a number of different countries.
It would likely also be nessecary to add additional metadata to
site.js
to allow the correct locacle to be selected, though perhaps that could also live in a more complex "alias".https://github.com/SalesforceCommerceCloud/pwa-kit/blob/develop/packages/template-retail-react-app/config/default.js
https://github.com/SalesforceCommerceCloud/pwa-kit/blob/develop/packages/template-retail-react-app/config/sites.js
The text was updated successfully, but these errors were encountered: