Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

gatsby-plugin-cname

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

Usage

Add to your gatsby-config.js file:

module.exports = {
  siteMetadata: {
    siteUrl: 'http://foobar.co.za/'
  },
  plugins: [
    'gatsby-plugin-cname'
  ],
}

Install

This project uses node and npm.

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

Contribute

  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

Credits

Based on gatsby-plugin-robots-txt.

License

MIT © Tiaan du Plessis

© 2023 Gatsby, Inc.