Skip to content

Commit

Permalink
Merge branch 'canary' into dedupe-tags
Browse files Browse the repository at this point in the history
  • Loading branch information
melanieseltzer authored Oct 15, 2019
2 parents bc19248 + 7ff5cc1 commit f045e31
Show file tree
Hide file tree
Showing 319 changed files with 1,428 additions and 986 deletions.
8 changes: 4 additions & 4 deletions README-zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default () => <div>Welcome to next.js!</div>
- 自动打包编译 (使用 webpack 和 babel)
- 热加载
-`./pages`作为服务的渲染和索引
- 静态文件服务. `./static/` 映射到 `/static/` (可以 [创建一个静态目录](#static-file-serving-eg-images) 在你的项目中)
- 静态文件服务. `./public/` 映射到 `/` (可以 [创建一个静态目录](#static-file-serving-eg-images) 在你的项目中)

这里有个简单的案例,可以下载看看 [sample app - nextgram](https://github.com/zeit/nextgram)

Expand Down Expand Up @@ -227,13 +227,13 @@ export default () => <p style={{ color: 'red' }}>hi there</p>

### 静态文件服务(如图像)

在根目录下新建文件夹叫`static`。代码可以通过`/static/`来引入相关的静态资源。
在根目录下新建文件夹叫`public`。代码可以通过`/`来引入相关的静态资源。

```jsx
export default () => <img src="/static/my-image.png" alt="my image" />
export default () => <img src="/my-image.png" alt="my image" />
```

_注意:不要自定义静态文件夹的名字,只能叫`static` ,因为只有这个名字 Next.js 才会把它当作静态资源。_
_注意:不要自定义静态文件夹的名字,只能叫`public` ,因为只有这个名字 Next.js 才会把它当作静态资源。_

<a id="populating-head" style="display: none"></a>

Expand Down
5 changes: 5 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pool:
variables:
NEXT_TELEMETRY_DISABLED: '1'
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
CHROMEDRIVER_VERSION: '76.0.3809.68'

strategy:
maxParallel: 10
Expand Down Expand Up @@ -37,6 +38,10 @@ steps:
yarn --frozen-lockfile --check-files
displayName: 'Install dependencies'
- script: |
yarn add chromedriver@76 -W
displayName: 'Install correct Chrome Driver version'
- script: |
node run-tests.js -c 2 -g $(group)
displayName: 'Run tests'
2 changes: 1 addition & 1 deletion contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Our Commitment to Open Source can be found [here](https://zeit.co/blog/oss)
3. Install the dependencies: `yarn`
4. Run `yarn dev` to build and watch for code changes
5. In a new terminal, run `yarn types` to compile declaration files from TypeScript
6. The development branch is `canary`. On a release, the relevant parts of the changes in the `canary` branch are rebased into `master`.
6. The development branch is `canary` (this is the branch pull requests should be made against). On a release, the relevant parts of the changes in the `canary` branch are rebased into `master`.

> You may need to run `yarn types` again if your types get outdated.
Expand Down
15 changes: 15 additions & 0 deletions errors/can-not-output-to-public.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Cannot output to /public

#### Why This Error Occurred

Either you set `distDir` to `public` in your `next.config.js` or during `next export` you tried to export to the `public` directory.

This is not allowed due to `public` being a special folder in Next.js used to serve static assets.

#### Possible Ways to Fix It

Use a different `distDir` or export to a different folder.

### Useful Links

- [Static file serving docs](https://nextjs.org/docs#static-file-serving-eg-images)
11 changes: 9 additions & 2 deletions errors/page-without-valid-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@

#### Why This Error Occurred

While auto exporting a page a valid React Component wasn't found. This could mean you have a file in `pages` that exports something that is not a React Component.
A page that does not export a valid React Component was found while analyzing the build output.

This is a hard error because the page would error when rendered, and causes poor build performance.

#### Possible Ways to Fix It

Move any non-page files that don't export a React Component as the default export to a different folder like `components` or `lib`.
Investigate the list of page(s) specified in the error message.
For each, you'll want to check if the file is meant to be a page.

If the file is not meant to be a page, and instead, is a shared component or file, move the file to a different folder like `components` or `lib`.

If the file is meant to be a page, double check you have an `export default` with the React Component instead of an `export`. If you're already using `export default`, make sure the returned valid is a valid React Component.
4 changes: 2 additions & 2 deletions errors/serverless-publicRuntimeConfig.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Using `publicRuntimeConfig` with `target` set to `serverless`
# Using `publicRuntimeConfig` or `serverRuntimeConfig` with `target` set to `serverless`

#### Why This Error Occurred

In the `serverless` target environment `next.config.js` is not loaded, so we don't support `publicRuntimeConfig`.
In the `serverless` target environment `next.config.js` is not loaded, so we don't support `publicRuntimeConfig` or `serverRuntimeConfig`.

#### Possible Ways to Fix It

Expand Down
38 changes: 38 additions & 0 deletions errors/static-dir-deprecated.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Static directory is deprecated

#### Why This Error Occurred

In versions prior to 9.0.6 the `static` directory was used to serve static assets in a Next.js application. This has been deprecated in favor of a `public` directory.

The reason we want to support a `public` directory instead is to not require the `/static` prefix for assets anymore and there is no reason to maintain both paths.

#### Possible Ways to Fix It

You can move your `static` directory inside of the `public` directory and all URLs will remain the same as they were before.

**Before**

```sh
static/
my-image.jpg
pages/
index.js
components/
my-image.js
```

**After**

```sh
public/
static/
my-image.jpg
pages/
index.js
components/
my-image.js
```

### Useful Links

- [Static file serving docs](https://nextjs.org/docs#static-file-serving-eg-images)
2 changes: 1 addition & 1 deletion examples/active-class-name/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Using `create-next-app`

Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:

```bash
npx create-next-app --example active-class-name active-class-name-app
Expand Down
2 changes: 1 addition & 1 deletion examples/amp-story/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Using `create-next-app`

Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:

```bash
npx create-next-app --example amp-story amp-app
Expand Down
2 changes: 1 addition & 1 deletion examples/amp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Using `create-next-app`

Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:

```bash
npx create-next-app --example amp amp-app
Expand Down
2 changes: 1 addition & 1 deletion examples/analyze-bundles/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Using `create-next-app`

Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:

```bash
npx create-next-app --example analyze-bundles analyze-bundles-app
Expand Down
2 changes: 1 addition & 1 deletion examples/api-routes-apollo-server-and-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Using `create-next-app`

Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:

```bash
npx create-next-app --example api-routes-apollo-server-and-client api-routes-apollo-server-and-client-app
Expand Down
2 changes: 1 addition & 1 deletion examples/api-routes-graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Using `create-next-app`

Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:

```bash
npx create-next-app --example api-routes-graphql api-routes-graphql-app
Expand Down
2 changes: 1 addition & 1 deletion examples/api-routes-micro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Using `create-next-app`

Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:

```bash
npx create-next-app --example api-routes-micro api-routes-micro-app
Expand Down
2 changes: 1 addition & 1 deletion examples/api-routes-middleware/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Using `create-next-app`

Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:

```bash
npx create-next-app --example api-routes-middleware api-routes-middleware-app
Expand Down
2 changes: 1 addition & 1 deletion examples/api-routes-rest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Using `create-next-app`

Execute [`create-next-app`](https://www.npmjs.com/package/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:

```bash
npx create-next-app --example api-routes-rest api-routes-rest-app
Expand Down
2 changes: 1 addition & 1 deletion examples/api-routes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Using `create-next-app`

Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:

```bash
npx create-next-app --example api-routes api-routes-app
Expand Down
4 changes: 2 additions & 2 deletions examples/auth0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This example shows how you can use `@auth0/nextjs-auth` to easily add authentica

### Using `create-next-app`

Execute [`create-next-app`](https://www.npmjs.com/package/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:

```bash
npx create-next-app --example auth0 auth0
Expand Down Expand Up @@ -92,7 +92,7 @@ This sample tries to cover a few topics:

- Signing in
- Signing out
- Loading the user on the server side and adding it as part of SSR (`/pages/advanced/srr-profile.js`)
- Loading the user on the server side and adding it as part of SSR (`/pages/advanced/ssr-profile.js`)
- Loading the user on the client side and using fast/cached SSR pages (`/pages/index.js`)
- API Routes which can load the current user (`/pages/api/me.js`)
- Using hooks to make the user available throughout the application (`/lib/user.js`)
4 changes: 2 additions & 2 deletions examples/auth0/lib/auth0.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useAuth0 } from '@auth0/nextjs-auth0'
import { initAuth0 } from '@auth0/nextjs-auth0'

export default useAuth0({
export default initAuth0({
clientId: process.env.AUTH0_CLIENT_ID,
clientSecret: process.env.AUTH0_CLIENT_SECRET,
scope: process.env.AUTH0_SCOPE,
Expand Down
2 changes: 1 addition & 1 deletion examples/auth0/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"author": "",
"license": "MIT",
"dependencies": {
"@auth0/nextjs-auth0": "0.2.0",
"@auth0/nextjs-auth0": "0.4.0",
"dotenv": "^8.1.0",
"isomorphic-unfetch": "^3.0.0",
"next": "latest",
Expand Down
2 changes: 1 addition & 1 deletion examples/basic-css/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Using `create-next-app`

Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:

```bash
npx create-next-app --example basic-css basic-css-app
Expand Down
2 changes: 1 addition & 1 deletion examples/basic-export/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Using `create-next-app`

Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:

```bash
npx create-next-app --example basic-export basic-export-app
Expand Down
2 changes: 1 addition & 1 deletion examples/blog-starter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Using `create-next-app`

Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example:
Download [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) to bootstrap the example:

```
npm i -g create-next-app
Expand Down
1 change: 0 additions & 1 deletion examples/blog-starter/components/head.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const Head = props => (
content={props.description || defaultDescription}
/>
<meta name='viewport' content='width=device-width, initial-scale=1' />
<link rel='icon' href='/static/favicon.ico' />

<link
rel='alternate'
Expand Down
2 changes: 1 addition & 1 deletion examples/blog-starter/posts/rss-feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const feed = {
feed_url: `${siteMeta.siteUrl}/feed.json`,
description: siteMeta.description,
icon: `${siteMeta.siteUrl}/static/apple-touch-icon-152x152.png`,
favicon: `${siteMeta.siteUrl}/static/favicon.ico`,
favicon: `${siteMeta.siteUrl}/favicon.ico`,
author: {
name: siteMeta.author,
url: siteMeta.siteUrl,
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion examples/custom-charset/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Using `create-next-app`

Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:

```bash
npx create-next-app --example custom-charset custom-charset-app
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-server-actionhero/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A more detailed example showcasing how to use fetch and web sockets to interact

### Using `create-next-app`

Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:

```bash
npx create-next-app --example custom-server-actionhero custom-server-actionhero-app
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-server-express/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Using `create-next-app`

Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:

```bash
npx create-next-app --example custom-server-express custom-server-express-app
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-server-fastify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Using `create-next-app`

Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:

```bash
npx create-next-app --example custom-server-fastify custom-server-fastify-app
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-server-hapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Using `create-next-app`

Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:

```bash
npx create-next-app --example custom-server-hapi custom-server-hapi-app
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-server-koa/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Using `create-next-app`

Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:

```bash
npx create-next-app --example custom-server-koa custom-server-koa-app
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-server-micro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Using `create-next-app`

Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:

```bash
npx create-next-app --example custom-server-micro custom-server-micro-app
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-server-nodemon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Using `create-next-app`

Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:

```bash
npx create-next-app --example custom-server-nodemon custom-server-nodemon-app
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-server-polka/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Using `create-next-app`

Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:

```bash
npx create-next-app --example custom-server-polka custom-server-polka-app
Expand Down
Loading

0 comments on commit f045e31

Please sign in to comment.