shadowwalker / next-pwa

Zero config PWA plugin for Next.js, with workbox 🧰
MIT License
3.71k stars 312 forks source link

next-pwa does not work on a development environment #478

Closed lightbluepoppy closed 1 year ago

lightbluepoppy commented 1 year ago

There's a issue #143 that refers to the same problem.

When you want to test offline of the web app, simply use yarn start instead of yarn dev.

It does not make sense since you have to run next build && next start every time you make changes to your codebase. Using next build && next start instead of next dev on the development environment is inefficient. mode: 'production' in next.config.js seems not working as well.

itbeginswithi commented 1 year ago

@lightbluepoppy, did you find a better solution?

lightbluepoppy commented 1 year ago

@itbeginswithi I gave up using it on the development environment. It is weird that sometime it works and sometimes don't.

itbeginswithi commented 1 year ago

Okay, thank you.