From 36eba95227214437f2d2dc616a0b3129a6e7315f Mon Sep 17 00:00:00 2001
From: Manny Becerra <39503964+mannybecerra@users.noreply.github.com>
Date: Tue, 11 Jan 2022 17:55:35 -0800
Subject: [PATCH] Fixes #33153: Updating cross-references from master to main +
canary (#33198)
* copy cleanup in env. variables docs
* copy cleanup in fast refresh docs
* Supplements #33153 - updating existing cross-references to `master` branch to renamed default branch of `main`
* Supplements #33153 - updating existing cross-references to `master` branch to renamed default branch of `main`
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
---
azure-pipelines.yml | 4 ++--
docs/api-reference/create-next-app.md | 2 +-
examples/analyze-bundles/README.md | 2 +-
examples/gh-pages/README.md | 2 +-
examples/progressive-web-app/pages/index.js | 2 +-
examples/with-apollo-and-redux/README.md | 2 +-
examples/with-cypress/pages/index.js | 2 +-
examples/with-docker/pages/index.js | 2 +-
examples/with-elasticsearch/pages/index.js | 2 +-
.../__tests__/__snapshots__/snapshot.tsx.snap | 8 ++++----
examples/with-jest-babel/pages/index.tsx | 2 +-
.../with-jest/__tests__/__snapshots__/snapshot.tsx.snap | 8 ++++----
examples/with-jest/pages/index.tsx | 2 +-
examples/with-knex/pages/index.js | 2 +-
examples/with-mdbreact/pages/index.js | 2 +-
examples/with-mongodb/pages/index.js | 2 +-
examples/with-playwright/pages/index.js | 2 +-
examples/with-rbx-bulma-pro/pages/index.js | 2 +-
examples/with-react-bootstrap/pages/index.jsx | 2 +-
examples/with-react-with-styles/README.md | 2 +-
examples/with-reactstrap/pages/index.jsx | 2 +-
examples/with-redux-persist/README.md | 2 +-
examples/with-redux-saga/README.md | 2 +-
examples/with-rematch/README.md | 2 +-
examples/with-sitemap/pages/index.js | 2 +-
examples/with-styled-jsx-postcss/README.md | 2 +-
examples/with-supertokens/pages/index.js | 2 +-
examples/with-tailwindcss/pages/index.tsx | 2 +-
examples/with-typestyle/README.md | 2 +-
lerna.json | 1 -
packages/create-next-app/README.md | 2 +-
packages/create-next-app/templates/default/pages/index.js | 2 +-
.../create-next-app/templates/typescript/pages/index.tsx | 2 +-
test/development/basic/tailwind-jit/pages/index.js | 2 +-
34 files changed, 40 insertions(+), 41 deletions(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 33c391bf3a..da56c8d77f 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -10,14 +10,14 @@ trigger:
- docs
- errors
- examples
- # Do not run Azure on `canary`, `master`, or release tags. This unnecessarily
+ # Do not run Azure on `canary`, `main`, or release tags. This unnecessarily
# increases the backlog, and the change was already tested on the PR.
branches:
include:
- '*'
exclude:
- canary
- - master
+ - main
- refs/tags/*
pr:
diff --git a/docs/api-reference/create-next-app.md b/docs/api-reference/create-next-app.md
index 3a00e008ac..f463840b88 100644
--- a/docs/api-reference/create-next-app.md
+++ b/docs/api-reference/create-next-app.md
@@ -25,7 +25,7 @@ yarn create next-app --typescript
`create-next-app` comes with the following options:
- **--ts, --typescript** - Initialize as a TypeScript project.
-- **-e, --example [name]|[github-url]** - An example to bootstrap the app with. You can use an example name from the [Next.js repo](https://github.com/vercel/next.js/tree/master/examples) or a GitHub URL. The URL can use any branch and/or subdirectory.
+- **-e, --example [name]|[github-url]** - An example to bootstrap the app with. You can use an example name from the [Next.js repo](https://github.com/vercel/next.js/tree/canary/examples) or a GitHub URL. The URL can use any branch and/or subdirectory.
- **--example-path [path-to-example]** - In a rare case, your GitHub URL might contain a branch name with a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar). In this case, you must specify the path to the example separately: `--example-path foo/bar`
- **--use-npm** - Explicitly tell the CLI to bootstrap the app using npm. To bootstrap using yarn we recommend running `yarn create next-app`
diff --git a/examples/analyze-bundles/README.md b/examples/analyze-bundles/README.md
index 8aec1e56c7..02e1673ccd 100644
--- a/examples/analyze-bundles/README.md
+++ b/examples/analyze-bundles/README.md
@@ -1,6 +1,6 @@
# Analyzer Bundles example
-This example shows how to analyze the output bundles using [@next/bundle-analyzer](https://github.com/vercel/next.js/tree/master/packages/next-bundle-analyzer)
+This example shows how to analyze the output bundles using [@next/bundle-analyzer](https://github.com/vercel/next.js/tree/canary/packages/next-bundle-analyzer)
## Preview
diff --git a/examples/gh-pages/README.md b/examples/gh-pages/README.md
index e9a37206c2..fbd3453284 100644
--- a/examples/gh-pages/README.md
+++ b/examples/gh-pages/README.md
@@ -20,7 +20,7 @@ Edit `next.config.js` and replace `'Next-gh-page-example'` by your project name.
1. Create repository.
2. Link it to your github account.
-3. Publish your master branch.
+3. Publish your default branch, e.g. `main`.
```bash
npm run deploy
diff --git a/examples/progressive-web-app/pages/index.js b/examples/progressive-web-app/pages/index.js
index dea04e8ac7..c7aef703d4 100644
--- a/examples/progressive-web-app/pages/index.js
+++ b/examples/progressive-web-app/pages/index.js
@@ -25,7 +25,7 @@ export default function Home() {