I’m trying to deploy my PWA React app to a subdirectory on my web server, and have managed to get everything working except the service-worker.js. I can’t seem to find where the path to the service-worker.js file is defined?
I can see it’s trying to load from https://<server-host>/service-worker.js
when it should be https://<server-host>/<subdir>/service-worker.js
I have tried adding "homepage": "."
to my package.json, changing the 'start_url'
to '/<subdir>'
in manifest.json, but to no avail.