See what's launched

The next gen Gatsby is here Performance, developer velocity, and scaling to meet Enterprise needs - See what’s launched

Sign Up for Free
Community Plugin
View plugin on GitHub


package version package downloads standard-readme compliant package license make a pull request

Gatsby plugin that automatically creates CNAME file for your site

Table of Contents


Add to your gatsby-config.js file:

module.exports = {
  siteMetadata: {
    siteUrl: ''
  plugins: [


This project uses node and npm.

$ npm install gatsby-plugin-cname
$ # OR
$ yarn add gatsby-plugin-cname


  1. Fork it and create your feature branch: git checkout -b my-new-feature
  2. Commit your changes: git commit -am "Add some feature"
  3. Push to the branch: git push origin my-new-feature
  4. Submit a pull request


Based on gatsby-plugin-robots-txt.


MIT © Tiaan du Plessis

© 2022 Gatsby, Inc.