SPA and History Mode with Github Pages
-
Hey guys… as the title suggests, after building the app for production, I have uploaded it to github. It works fine with hash mode but not with history. As I can’t tinker Github server config, how can I then make it work? There is an article in dev.to but that is not working.
Can anyone please tell me the exact steps to make this work?
-
@callum https://dev.to/quasar/publish-your-quasar-spa-on-github-io-with-history-mode-20h2
This still works for me. All of the app-extensions I have written use this technology on github.io.
Double-check your changes. Compare to source in “demo” folder of any official quasar app-extension (like QCalendar) -
The only thing that may be different is statics changed to public. You can put the 404.html in public.
-
Thank You, though I have another issue. What you have said works fine with Github pages but if I add a custom domain, it throws the same errors. Is PublicPath necessary for a custom domain in Github pages?