#404 when getting a ServiceWorker used for mock data.

4 messages · Page 1 of 1 (latest)

sacred pasture
#

I'm currently using a serviceWorker for mocking a server response. I have to deploy the code to github pages and the serviceWorker is not found on the github url. I'm able to access the .html and .js files but not the serviceWorker.
What can be the issue? The deploy is under 2 subfolders (dist/browser) so I had to change the baseHref of the build in order to the .js files to be found. Also, after trying changing many parameters and reverting through git, now I can't even open on localhost.

sacred pasture