You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm also seeing this issue myself. My guess is the issue is due to the swDest field it's setting, since /static/ isn't a dir that is respected by nextjs anymore. However, I've tried using public/service-worker.js and also am seeing this error.
Edit:
I've found an "official" example in the nextjs codebase with a different config defined, which includes an explicit rewrites to point /service-worker.js at the real /_next/static/service-worker.js.
Steps taken:
Expected: Service worker registered.
Actual: 404 for http://localhost:3000/service-worker.js (screengrab below)
Apologies in advance in case I'm missing something.
The text was updated successfully, but these errors were encountered: