Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for gh-pages remove CNAME file for custom domain #3160

Merged
merged 3 commits into from
Dec 14, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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