Update docs and config to replace "master" with "main" branch

https://github.com/facebook/react/issues/21767
This commit is contained in:
Brian Vaughn
2021-06-29 13:35:55 -04:00
committed by GitHub
parent 25f756d8e3
commit d456dfbd29
55 changed files with 117 additions and 117 deletions

View File

@@ -5,7 +5,7 @@
const request = require('request-promise');
const errorCodesUrl =
'https://raw.githubusercontent.com/facebook/react/master/scripts/error-codes/codes.json';
'https://raw.githubusercontent.com/facebook/react/main/scripts/error-codes/codes.json';
exports.sourceNodes = async ({actions}) => {
const {createNode} = actions;

View File

@@ -7,7 +7,7 @@ const {appendFile, exists, readFile, writeFile} = require('fs-extra');
const HEADER_COMMENT = `## Created with gatsby-transformer-versions-yaml`;
// Patterned after the 'gatsby-plugin-netlify' plug-in:
// https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-netlify/src/create-redirects.js
// https://github.com/gatsbyjs/gatsby/blob/main/packages/gatsby-plugin-netlify/src/create-redirects.js
module.exports = async function writeRedirectsFile(
redirects,
redirectsFilePath,