next-pwa icon indicating copy to clipboard operation
next-pwa copied to clipboard

PWA behind nginx or node balancer

Open kirkegaard opened this issue 3 years ago • 0 comments

Summary

I dont know if this is expected behaviour but i cant seem to get this working when i put next behind an nginx or node balancer like traefik. It seems like it doesnt register the service worker unless i access the site via localhost. Is this expected or would i need to proxy something directly to the service worker files for it to register or how is it expected to be setup?

Versions

  • next-pwa: 5.5.4
  • next: 12

kirkegaard avatar Jun 16 '22 09:06 kirkegaard