diff --git a/src/swRegistration.ts b/src/swRegistration.ts index 0a684a8..927cba6 100644 --- a/src/swRegistration.ts +++ b/src/swRegistration.ts @@ -23,7 +23,7 @@ export function register(config?: Config) { } window.addEventListener('load', () => { - const swUrl = `${process.env.PUBLIC_URL}/sw.js`; + const swUrl = `./sw.js`; if (isLocalhost) { // This is running on localhost. Let's check if a service worker still exists or not.