Skip to content

Commit

Permalink
Fix for gh-pages remove CNAME file for custom domain (#3160)
Browse files Browse the repository at this point in the history
* Added fix for `gh-pages` remove CNAME file bug

* Added texts for custom domain with Github Pages
  • Loading branch information
bodaso authored and KyleAMathews committed Dec 14, 2017
1 parent 17a51df commit b16667e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/docs/deploy-gatsby.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,12 @@ The repository for these sites requires a special name. See
https://help.github.com/articles/user-organization-and-project-pages/ for
documentation on naming your site's repository.

Like with project sites, add `gh-pages` as a `devDependency` and add a `deploy`
script to your site's `package.json` file:
If you wish to link your custom domain with your `user.github.io` repo, you will need
a `CNAME` file inside the `static` folder at the root directory level with the your
custom domain url inside, like so:

```
"scripts": {
"deploy": "gatsby build && gh-pages -d public --branch master",
}
your-custom-domain.com
```

## Gitlab Pages
Expand Down

0 comments on commit b16667e

Please sign in to comment.