-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'canary' into respect-cache-headers
# Conflicts: # packages/next/server/image-optimizer.ts
- Loading branch information
Showing
259 changed files
with
1,967 additions
and
1,007 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Learn how to add code owners here: | ||
# https://help.github.com/en/articles/about-code-owners | ||
|
||
* @timneutkens @ijjk @lfades @divmain @shuding | ||
/docs/ @timneutkens @ijjk @lfades @divmain @shuding @leerob | ||
/examples/ @timneutkens @ijjk @lfades @divmain @shuding @leerob | ||
* @timneutkens @ijjk @shuding @styfle @huozhi @padmaia | ||
/docs/ @timneutkens @ijjk @shuding @styfle @huozhi @padmaia @leerob @lfades | ||
/examples/ @timneutkens @ijjk @shuding @styfle @huozhi @padmaia @leerob @lfades |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# API Routes Body Size Limited to 4MB | ||
|
||
#### Why This Error Occurred | ||
|
||
API Routes are meant to respond quickly and are not intended to support responding with large amounts of data. The maximum size of responses is 4 MB. | ||
|
||
#### Possible Ways to Fix It | ||
|
||
Limit your API Route responses to less than 4 MB. If you need to support sending large files to the client, you should consider using a dedicated media host for those assets. See link below for suggestions. | ||
|
||
### Useful Links | ||
|
||
[Tips to avoid the 5 MB limit](https://vercel.com/support/articles/how-to-bypass-vercel-5mb-body-size-limit-serverless-functions) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# <!-- INSERT TITLE HERE --> | ||
|
||
#### Why This Error Occurred | ||
|
||
<!-- Explain why the error occurred. Ensure the description makes it clear why the warning/error exists --> | ||
|
||
#### Possible Ways to Fix It | ||
|
||
<!-- Explain how to fix the warning/error, potentially by providing alternative approaches. Ensure this section is actionable by users --> | ||
|
||
### Useful Links | ||
|
||
<!-- Add links to relevant documentation --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,13 @@ | ||
import Link from 'next/link' | ||
import Head from 'next/head' | ||
import styles from './layout.module.css' | ||
|
||
export default function Layout({ | ||
children, | ||
title = 'This is the default title', | ||
}) { | ||
export default function Layout({ children }) { | ||
return ( | ||
<div> | ||
<> | ||
<Head> | ||
<title>{title}</title> | ||
<meta charSet="utf-8" /> | ||
<meta name="viewport" content="initial-scale=1.0, width=device-width" /> | ||
<title>Layouts Example</title> | ||
</Head> | ||
<header> | ||
<nav> | ||
<Link href="/"> | ||
<a>Home</a> | ||
</Link>{' '} | ||
| | ||
<Link href="/about"> | ||
<a>About</a> | ||
</Link>{' '} | ||
| | ||
<Link href="/contact"> | ||
<a>Contact</a> | ||
</Link> | ||
</nav> | ||
</header> | ||
|
||
{children} | ||
|
||
<footer>{'I`m here to stay'}</footer> | ||
</div> | ||
<main className={styles.main}>{children}</main> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.main { | ||
display: flex; | ||
height: calc(100vh - 64px); | ||
background-color: white; | ||
} | ||
|
||
.main > section { | ||
padding: 32px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import Link from 'next/link' | ||
import styles from './sidebar.module.css' | ||
|
||
export default function Sidebar() { | ||
return ( | ||
<nav className={styles.nav}> | ||
<input className={styles.input} placeholder="Search..." /> | ||
<Link href="/"> | ||
<a>Home</a> | ||
</Link> | ||
<Link href="/about"> | ||
<a>About</a> | ||
</Link> | ||
<Link href="/contact"> | ||
<a>Contact</a> | ||
</Link> | ||
</nav> | ||
) | ||
} |
Oops, something went wrong.