【发布时间】:2022-12-27 13:48:38
【问题描述】:
When i try to deploy my react app to github pages with the package gh-pages, the result page is blank.result page
The page I am trying to deploy is here: LINK I don't know if it matters but I am currently using the free domain given to me by GitHub: www.elvas.me
I tried following the react official docs: Link, but it didn't work for me... Perhaps it's because I am using vite and not create-react-app?
*Edit*
Found out that the site is trying to get the .js and the .css from the wrong place.
I just don't know what I am doing wrong...
【问题讨论】:
-
Have you set the "/" route ?
-
How do I do that? In the index.html?
-
I mean in the app.js, where you define your routes, is the "/" (the home route) defined ?
-
I don't think it is... But I am not using react-router, do I need it?
-
For this specific project, i do not need more than one route :)
标签: reactjs web-deployment github-pages vite