gh-pages does not render anything to the page #47932
-
Select Topic AreaQuestion BodyI created vite app and built and deploy it properly. it worked for a while, then when i brought some changes to my page now it doesn't render anything and there is just a white page. i have 2 branches main and gh-pages but still doesn't render anything. Appreciate your help know how to solve this problem. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hey @roymansoor 👋, if you are trying to deploy your Vite/React app (i.e. https://roymansoor.github.io/) on GH pages, please take at look at the following below. Based on Vite's documentation link over here: From what I'm seeing in your repository, your current vite.config.js is setup like this: It could be an issue with the 'base' key in vite.config.js, hence consider doing the following:
References for your perusal:
Hope this helps and answers your question 😄! |
Beta Was this translation helpful? Give feedback.
-
Hi @roymansoor I struggled with the same issue for a long! The following solution worked for me and rendered the html pages correctly! |
Beta Was this translation helpful? Give feedback.
Hey @roymansoor 👋, if you are trying to deploy your Vite/React app (i.e. https://roymansoor.github.io/) on GH pages, please take at look at the following below.
Based on Vite's documentation link over here:
From what I'm seeing in your repository, your current vite.config.js is setup like this:
It could be an issue with the 'base' key in vite.config.js, hence consider doing the following: