Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Change the name of the generated service worker #104

Open
anz000 opened this issue Aug 4, 2023 · 0 comments
Open

Change the name of the generated service worker #104

anz000 opened this issue Aug 4, 2023 · 0 comments

Comments

@anz000
Copy link

anz000 commented Aug 4, 2023

I want to change the name of the generated service worker. The default sw.js to service-worker.js, and all the workflow to look for the new service work URL at /service-worker.js.

On a different note, I had a different app register as service-worker.js. I plan to have the nuxt app on the same domain. I explored few options, but it didn't work out:

  • The default sw.js doesn't take over.
  • I tried using enabled: false so that old service worker from previous app would be deleted, but it doesn't.
  • I manually renamed sw.js to service-worker.js, which overrides the old one. But all subsequent reloads still search for sw.js.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant