score:0

the issue might be that you should set homepage , instead of homepage with capital "h".

but in general, you may follow the steps here:

https://github.com/gitname/react-gh-pages

and this is the official guide:

https://create-react-app.dev/docs/deployment/#github-pages

score:0

as alixsep mentioned it could be with the upper case issue. use

"homepage": "https://jonathan929-del.github.io/jonathan-gym"

instead of

"homepage": "https://jonathan929-del.github.io/jonathan-gym" in the package.json

if you mean to serve the index page of your react app, change it to

"homepage": "."

index.js:

app.use(express.static(__dirname)); //here is important thing - no static directory, because all static :)

app.get("/*", function(req, res) {
  res.sendfile(path.join(__dirname, "index.html"));
});

Related Query

More Query from same tag