function serviceWorker() {
  if ('serviceWorker' in navigator) {
    navigator.serviceWorker
      .register('/sw.js', { scope: '/' })
      .then((registration) => {
        console.log('Service Worker Registered')
      })

    navigator.serviceWorker.ready.then((registration) => {
      console.log('Service Worker Ready')
    })
  }
}

export { serviceWorker }

@@ -109,9 +109,21 @@
 ('/s
-w
+ervice-worker
 .js'

Fix service worker.