How to Host Ionic PWA in the subfolder of Github Pages

I want to host an Ionic QR code scanner on the GitHub pages under this path: Ionic App.

I modified the package.json to add the homepage value and run ionic build --prod to build it. But it does not seem to work.

The repo: GitHub - xulihang/Ionic-React-QR-Code-Scanner: Ionic QR Code Scanner using Dynamsoft Barcode Reader

Have you been able to deploy as spa as per instructions like these?

If that worked for you then the question becomes what happens when you add a service worker

I’d try a Lighthouse test then ad well

I wonder if a service worker can deal with the work around to handle the routes

I turn to using netlify to host my PWAs in the end.