Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Ground Controller Lvl 1
Message 1 of 3

Project page serving from the wrong URL [SOLVED]

Solved! Go to Solution.

When I go to my custom domain http://example.com, nothing appears. The network requests are attempting to fetch the static files from http://example.com/PROJECT_NAME/static/main.js, when they are actually located at http://example.com/static/main.js. 

 

2 Replies
Highlighted
Solution
Ground Controller Lvl 1
Message 2 of 3

Re: Project page serving from the wrong URL.

Solution:

Setting package.json's "homepage" field to "name.github.io" instead of "name.github.io/project_name".

 

Since DNS providers route to name.github.io for all (even multiple) projects, and uses CNAME to identify the project, the static files should be served from name.github.io, not name.github.io/project_name. 

Highlighted
Ground Controller Lvl 1
Message 3 of 3

Re: Project page serving from the wrong URL.

I need an explanation of this. What to edit in the package.json file.