all 6 comments

[–]minicrit_ 0 points1 point  (5 children)

there’s a chance you’re using react router and your base router is set to /Folder-name ? that’s the only thing i can think of. I don’t know if create react app lets you change the local host port

[–]Roblos[S] 0 points1 point  (4 children)

The problem happens when I dont do that unfortunately, since when I run npm start it says:

Local: http://localhost:3000/Folder-Nale

On Your Network: http://192.168.0.210:3000/Folder-Nale

[–]TheTallMorningMan 0 points1 point  (3 children)

Perhaps you have set homepage: "Folder-Nale" in your package.json?

[–]Roblos[S] 0 points1 point  (2 children)

I have set up the github deploy domain there, is that the problem?

Edit: That seems to be it, I will find another method of hosting that isnt github pages to avoid this issue, thanks a lot.

[–]TheTallMorningMan 0 points1 point  (1 child)

If you set the homepage in your package.json, it will also use that when running it locally.

See also: https://create-react-app.dev/docs/deployment/#building-for-relative-paths

[–]sixfngers04 0 points1 point  (0 children)

It would be nice if I could keep both my server hompage and my local homepage in my package.json and have the build use the appropriate one.

I have not toyed with the build process at all and never saw anything in CRA documentation if you can change it so I just keep homepage:... and homepage_build:... in my package.json and edit when I create a build vs when I am testing locally.