Let's say I have a root or base url of aws.com/prefix/. I want to run the PWA (vue init pwa my-vue-app) at this url, but the PWA by default serves at /. I was able to change the assets path in various configurations for css, js, and the index.html, but the service-worker.js file in dist seems to only load at /.
Is there a parameter somewhere to allow a different base or root url for service-worker in the Vue / Vuex PWA project?
The available config files that might have options for this are:
build/service-worker-prod.js
build/webpack.base.conf.js
build/webpack.prod.conf.js
config/index.js
build/service-worker-prod.js,navigator.serviceWorker.register('PREFIX_HERE/service-worker.js')To fix the issue, but this seems a bit hacky, wondering if there is a proper configuration location to change this.