-
Notifications
You must be signed in to change notification settings - Fork 27k
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 with-storybook-styled-jsx-scss
- Loading branch information
Showing
240 changed files
with
7,670 additions
and
3,010 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
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 |
---|---|---|
|
@@ -31,6 +31,7 @@ examples/**/out | |
examples/**/.env*.local | ||
|
||
pr-stats.md | ||
test-timings.json | ||
|
||
# Vercel | ||
.vercel | ||
|
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,23 @@ | ||
# `next export` with Image API | ||
|
||
#### Why This Error Occurred | ||
|
||
You are attempting to run `next export` while importing the `next/image` component configured using the default `loader`. | ||
|
||
However, the default `loader` relies on the Image Optimization API which is not available for exported applications. | ||
|
||
This is because Next.js optimizes images on-demand, as users request them (not at build time). | ||
|
||
#### Possible Ways to Fix It | ||
|
||
- Use `next start` to run a server, which includes the Image Optimization API. | ||
- Use Vercel to deploy, which supports [Image Optimization](https://vercel.com/docs/next.js/image-optimization). | ||
- Configure a third-party [loader](https://nextjs.org/docs/basic-features/image-optimization#loader) in `next.config.js`. | ||
|
||
### Useful Links | ||
|
||
- [Deployment Documentation](https://nextjs.org/docs/deployment#vercel-recommended) | ||
- [Image Optimization Documentation](https://nextjs.org/docs/basic-features/image-optimization) | ||
- [`next export` Documentation](https://nextjs.org/docs/advanced-features/static-html-export) | ||
- [`next/image` Documentation](https://nextjs.org/docs/api-reference/next/image) | ||
- [Vercel Documentation](https://vercel.com/docs/next.js/image-optimization) |
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,16 @@ | ||
# Mixed `notFound` and `redirect` | ||
|
||
#### Why This Error Occurred | ||
|
||
In one of your page's `getStaticProps` or `getServerSideProps` `notFound` and `redirect` values were both returned. | ||
|
||
These values can not both be returned at the same time and one or the other needs to be returned at a time. | ||
|
||
#### Possible Ways to Fix It | ||
|
||
Make sure only `notFound` **or** `redirect` is being returned on your page's `getStaticProps` or `getServerSideProps` | ||
|
||
### Useful Links | ||
|
||
- [`getStaticProps` Documentation](https://nextjs.org/docs/basic-features/data-fetching#getstaticprops-static-generation) | ||
- [`getServerSideProps` Documentation](https://nextjs.org/docs/basic-features/data-fetching#getserversideprops-server-side-rendering) |
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 |
---|---|---|
@@ -1,26 +1,26 @@ | ||
import { svg, arm } from './view-source.module.css' | ||
|
||
const ViewSource = ({ pathname }) => ( | ||
<a | ||
title="View Source" | ||
href={`https://github.com/vercel/next.js/tree/canary/examples/image-component/${pathname}`} | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="80" | ||
height="80" | ||
viewBox="0 0 250 250" | ||
fill="#151513" | ||
className={svg} | ||
> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="80" | ||
height="80" | ||
viewBox="0 0 250 250" | ||
fill="#151513" | ||
className={svg} | ||
<a | ||
title="View Source" | ||
href={`https://github.com/vercel/next.js/tree/canary/examples/image-component/${pathname}`} | ||
> | ||
<path d="M0 0l115 115h15l12 27 108 108V0z" fill="#fff" /> | ||
<path | ||
className={arm} | ||
d="M128 109c-15-9-9-19-9-19 3-7 2-11 2-11-1-7 3-2 3-2 4 5 2 11 2 11-3 10 5 15 9 16" | ||
/> | ||
<path d="M115 115s4 2 5 0l14-14c3-2 6-3 8-3-8-11-15-24 2-41 5-5 10-7 16-7 1-2 3-7 12-11 0 0 5 3 7 16 4 2 8 5 12 9s7 8 9 12c14 3 17 7 17 7-4 8-9 11-11 11 0 6-2 11-7 16-16 16-30 10-41 2 0 3-1 7-5 11l-12 11c-1 1 1 5 1 5z" /> | ||
</svg> | ||
</a> | ||
</a> | ||
</svg> | ||
) | ||
|
||
export default ViewSource |
Oops, something went wrong.