I have a small project with create-react-app, which I wanted to host on github pages. It would be:
stopachka.github.io/my-project
The help in our tutorial was awesome. However, when loading the project, assets are not correctly found.
In the generated index.html, we have ->
<script type="text/javascript" src="/static/js/main.ce66e420.js"></script>
This will direct github-pages too
https://stopachka.github.io/static/js/main.ce66e420.js
which return a 400. It should instead direct to ->
stopachka.github.io/my-project/static/js/main.ce66e420.js
Ideas:
- Make it so the source path does not have the
/ prepended to it.
- Find simple way to tell github-pages to do the right thing, or to prepend /my-project/ to the source path through some option
- If this is something that we don't want to support out of the box, we can tell users to eject, and write some quick instructions in the docs
I have a small project with create-react-app, which I wanted to host on github pages. It would be:
The help in our tutorial was awesome. However, when loading the project, assets are not correctly found.
In the generated index.html, we have ->
This will direct github-pages too
which return a 400. It should instead direct to ->
Ideas:
/prepended to it.