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 :