mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-25 23:05:23 +00:00
Update docs and config to replace "master" with "main" branch
https://github.com/facebook/react/issues/21767
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user