Skip to content

Commit 60960ac

Browse files
authored
Merge branch 'canary' into canary
2 parents afae040 + 5a7f9fa commit 60960ac

File tree

181 files changed

+3055
-2765
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+3055
-2765
lines changed

contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Our Commitment to Open Source can be found [here](https://zeit.co/blog/oss)
1616

1717
Make sure you have `chromedriver` installed for your Chrome version. You can install it with
1818

19-
- `brew install chromedriver` on Mac OS X
19+
- `brew cask install chromedriver` on Mac OS X
2020
- `chocolatey install chromedriver` on Windows
2121
- Or manually downloading it from the [chromedriver repo](https://chromedriver.storage.googleapis.com/index.html) and adding the binary to `<next-repo>/node_modules/.bin`
2222

docs/advanced-features/amp-support/adding-amp-components.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
description: Add components from the AMP community to AMP pages, and make your pages more interactive.
3+
---
4+
15
# Adding AMP Components
26

37
The AMP community provide [many components](https://amp.dev/documentation/components/) to make AMP pages more interactive. You can add these components to your page by using `next/head`, as in the following example:

docs/advanced-features/amp-support/amp-in-static-html-export.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
description: Learn how AMP pages are created when used together with `next export`.
3+
---
4+
15
# AMP in Static HTML export
26

37
When using `next export` to do [Static HTML export](/docs/advanced-features/static-html-export.md) statically prerender pages, Next.js will detect if the page supports AMP and change the exporting behavior based on that.

docs/advanced-features/amp-support/amp-validation.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
description: AMP pages are automatically validated by Next.js during development and on build. Learn more about it here.
3+
---
4+
15
# AMP Validation
26

37
AMP pages are automatically validated with [amphtml-validator](https://www.npmjs.com/package/amphtml-validator) during development. Errors and warnings will appear in the terminal where you started Next.js.

docs/advanced-features/amp-support/introduction.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
description: With minimal config, and without leaving React, you can start adding AMP and improve the performance and speed of your pages.
3+
---
4+
15
# AMP Support
26

37
<details>

docs/advanced-features/amp-support/typescript.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
description: Using AMP with TypeScript? Extend your typings to allow AMP components.
3+
---
4+
15
# TypeScript
26

37
AMP currently doesn't have built-in types for TypeScript, but it's in their roadmap ([#13791](https://github.com/ampproject/amphtml/issues/13791)).

docs/advanced-features/automatic-static-optimization.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
description: Next.js automatically optimizes your app to be static HTML whenever possible. Learn how it works here.
3+
---
4+
15
# Automatic Static Optimization
26

37
Next.js automatically determines that a page is static (can be prerendered) if it has no blocking data requirements. This determination is made by the absence of `getInitialProps` in the page.
@@ -6,7 +10,7 @@ This feature allows Next.js to emit hybrid applications that contain **both serv
610

711
> Statically generated pages are still reactive: Next.js will hydrate your application client-side to give it full interactivity.
812
9-
One of the main benefits this feature is that optimized pages require no server-side computation, and can be instantly streamed to the end-user from multiple CDN locations. The result is an _ultra fast_ loading experience for your users.
13+
One of the main benefits of this feature is that optimized pages require no server-side computation, and can be instantly streamed to the end-user from multiple CDN locations. The result is an _ultra fast_ loading experience for your users.
1014

1115
## How it works
1216

docs/advanced-features/custom-app.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
description: Control page initialization and add a layout that persists for all pages by overriding the default App component used by Next.js.
3+
---
4+
15
# Custom `App`
26

37
Next.js uses the `App` component to initialize pages. You can override it and control the page initialization. Which allows you to do amazing things like:

docs/advanced-features/custom-document.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
description: Extend the default document markup added by Next.js.
3+
---
4+
15
# Custom `Document`
26

37
A custom `Document` is commonly used to augment your application's `<html>` and `<body>` tags. This is necessary because Next.js pages skip the definition of the surrounding document's markup.

docs/advanced-features/custom-error-page.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
description: Override and extend the built-in Error page to handle custom errors.
3+
---
4+
15
# Custom Error Page
26

37
**404** or **500** errors are handled both client-side and server-side by the `Error` component. If you wish to override it, define the file `pages/_error.js` and add the following code:

0 commit comments

Comments
 (0)