Appearance
Salesforce Commerce Cloud
This guide is for SFCC users who do not already have a service worker running at the root of their site. If your site already has a service worker, please import our script by following the guide, Using an existing service worker
Enable Service Worker
Navigate to the Fanplayr plugin configuration page and enable the service worker:
Make service worker accessible from the root
- Within SFCC, navigate to Business Manager / Merchant Tools / SEO / Aliases.
- Edit the alias config to add the following route, adjusting as necessary to match your hostname.
javascript
{
"my-store.demandware.net" : [
{
"if-site-path": "/serviceWorker.js",
"pipeline": "Fanplayr-ServiceWorker"
}
]
}