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
I have tried adding
"homepage": "." to my package.json, changing the
'/<subdir>' in manifest.json, but to no avail.