with VITE the pwa application expects the service worker to be found in the root folder #15363
Unanswered
gaguerrero
asked this question in
CLI - PWA mode
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am migrating my app from webpack to vite. When I host it on the production server, it doesn't work because it tries to load the service worker from the root folder, that is, it has a slash: '/service-worker.js', the same thing happens with the manifest. My application is hosted in a subfolder. Any idea how to solve it? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions