nuxt-community / pwa-module

Zero config PWA solution for Nuxt.js
https://pwa.nuxtjs.org
MIT License
1.23k stars 171 forks source link

Nuxt Manifest publicPath does not change during runtime #435

Open tommcclean opened 3 years ago

tommcclean commented 3 years ago

In Nuxt 2.15.2 the build/publicPath property is now evaluated during runtime which means we can use this to load assets from an environment specific CDN - thats great.

However while this works for assets, the manifest still comes from the publicPath as at the time of yarn build and is not evaluated during runtime.

It would be great if this would work for the manifest publicPath too, as otherwise the manifest cannot be loaded.

bblanchon commented 3 years ago

Related to https://github.com/nuxt/nuxt.js/pull/8520

bblanchon commented 3 years ago

In addition to publicPath, start_url should be changeable at runtime as well.

bblanchon commented 2 years ago

Why did you close the issue, @tommcclean? Is this fixed?

tommcclean commented 2 years ago

Must have closed the wrong one, I had several related. Though I stopped using this module months ago

The publicPath in the build property now works; that is what I meant to close.