Skip to content

Commit

Permalink
Add note about using Custom Domain with Github Pages (#4006)
Browse files Browse the repository at this point in the history
* Update how-gatsby-works-with-github-pages.md

* Update how-gatsby-works-with-github-pages.md

* Update how-gatsby-works-with-github-pages.md
  • Loading branch information
gc authored and KyleAMathews committed Feb 13, 2018
1 parent d5d9815 commit a2139a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/docs/how-gatsby-works-with-github-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,7 @@ In this case we dont need to specify `pathPrefix`, but our website needs to be p
```

After running `yarn run deploy` you should see your website at `http://username.github.io`

## Custom domains

If you use a [custom domain](https://help.github.com/articles/using-a-custom-domain-with-github-pages/), don't add a `pathPrefix` as it will break navigation on your site. Path prefixing is only necessary when the site is *not* at the root of the domain like with repository sites.

0 comments on commit a2139a5

Please sign in to comment.