Skip to content

How to Create Custom Service worker in PWA Venia

In Magento PWA Venia [ React frontend ] We have

src/ServiceWorker/sw.js by default.

In the same way, we need to add custom service worker file. When i added the file in src/ServiceWorker/Customsw.js and try to access through website.com/customsw.js i got the below error :

enter image description here