NotAgainLarry
NotAgainLarry

Reputation: 23

Vue-Project is deploying but not displaying on Git Hub pages

I have followed all the tutorials I could online but I cannot get a test Vite-Project (React based) to run on Github pages. All I get is a blank screen a warning stating Failed to load resource: the server responded with a status of 404 (). Here is a link to the repository - https://github.com/PortDaveA/vite-project. Here is a link to the github page (https://portdavea.github.io/vite-project/). I have tried to find other Vite project pages and many of them have similar issues.

Upvotes: 1

Views: 571

Answers (1)

Rahym Charyyev
Rahym Charyyev

Reputation: 25

I think you must check your vite.config.js file. In base property you should write the url of your repository in github. Like in this screenshot: enter image description here

Also you can read this article or Vite docs. Here the links https://dev.to/shashannkbawa/deploying-vite-app-to-github-pages-3ane https://vitejs.dev/guide/static-deploy.html

Upvotes: 1

Related Questions