I'm having a little trouble deploying a React app to my Github User Page. I have read the create-react-app documentation and understand how to deploy to a project page using "yarn run deploy," however, this is not what I am trying to do.
I believe the problem is that a user page looks for index.html in the repo's root directory, but "npm run build" generates that file in a separate build directory. Since user pages must be built from the master branch, I am looking for a way for these build files to be generated right at the repo's root. My first thought was to modify the "build.js" script, but I'm not really sure what I'm looking at when I open it.
For what it's worth, the application works just fine when I drag the contents of my build directory directly into the root directory before pushing to Github, and can be accessed as I'd like at username.githubo.io. However, that feels rather sloppy and tedious.
I've tried setting "homepage" in package.json to "username.githubo.io/", but the deploy script still generates a separate gh-pages branch from which the app is to be built (which, again, isn't allowed for a user page).
Appreciate the help in advance! Let me know if I can clarify.
EDIT:
https://tyler-coleman.github.io/
https://github.com/tyler-coleman/tyler-coleman.github.io
Including links to the current site and repo so y'all have a better idea what I'm talking about. For now I've gotten around the issue by including "cp -a build/. ." in my deploy script in package.json.
I just think it's strange that the documentation includes directions for deploying to a project page, but not to a user page.