Skip to content

How to Upload SW File in Shopline ​

This article explains how to upload a Service Worker (SW) file in your Shopline store.

Step 1: Download the SW file ​

img

Step 2: Open the SW file with a text editor and copy the content ​

img

Step 3: Go to Shopline and edit code ​

img

Step 4: Check the store version ​

img

OS 3.0: Create a new sw.js file in the public directory ​

img

OS 2.1: Create a new sw.js file in the assets directory ​

img

Step 5: Click Save ​

img