shadowwalker / next-pwa

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

configurable Custom Worker path prefix #485

Closed danielpasch closed 11 months ago

danielpasch commented 11 months ago

Summary

Set a configurable prefix path for the custom worker.

Versions

How To Reproduce

For our NextJS project we would have to adjust the custom worker path so that the custom worker file is not part of the public root. This is important to us because of root caching assets handling. Currently we can only configure a custom worker, which will bundled as hashed worker-*js to the static folder. It would be helpful to shift this custom worker file out of root by setting a prefix in the path.

Expected Behaviors

A configurable prefix path for the custom worker file.

danielpasch commented 11 months ago

Fixed in this active fork https://github.com/DuCanhGH/next-pwa/issues/60