Hello. I am trying to deploy my Vue3 SPA app on GitHub pages and everything is working as its supposed to. I have the callback and redirect_uri set to “https://account.github.io/<repo_name>”. However, after I login, I am redirected to only “https://account.github.io” and the page does load but I cannot navigate to anything else nor can I refresh or else I am hit with a 404 error. I have been looking online and reading through anything I can find, but I cannot seem to resolve this issue. If anyone can help I would gladly appreciate it. Thank you!
Welcome to the Auth0 Community!
The issues you are faced with most likely occur due to how GitHub handles hosting pages, as Github Pages serve static files and do not natively support SPA routing. A dedicated repo → GitHub - rafgraph/spa-github-pages: Host single page apps with GitHub Pages describes this problem and shows a possible way to overcome it.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.