Skip to content

Project page serving from the wrong URL [SOLVED] #21840

Discussion options

You must be logged in to vote

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants