Skip to content

Commit f49912b

Browse files
authored
Merge branch 'canary' into adds-temporary-eslint-v8-error
2 parents 1b34793 + 62895a8 commit f49912b

File tree

118 files changed

+4898
-211
lines changed

Some content is hidden

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

118 files changed

+4898
-211
lines changed

docs/api-reference/next/image.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ Try it out:
152152

153153
- [Demo the `blur` placeholder](https://image-component.nextjs.gallery/placeholder)
154154
- [Demo the shimmer effect with `blurDataURL` prop](https://image-component.nextjs.gallery/shimmer)
155+
- [Demo the color effect with `blurDataURL` prop](https://image-component.nextjs.gallery/color)
155156

156157
## Advanced Props
157158

@@ -208,6 +209,7 @@ Try it out:
208209

209210
- [Demo the default `blurDataURL` prop](https://image-component.nextjs.gallery/placeholder)
210211
- [Demo the shimmer effect with `blurDataURL` prop](https://image-component.nextjs.gallery/shimmer)
212+
- [Demo the color effect with `blurDataURL` prop](https://image-component.nextjs.gallery/color)
211213

212214
You can also [generate a solid color Data URL](https://png-pixel.com) to match the image.
213215

errors/page-data-collection-timeout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ When restarted it will retry all uncompleted jobs, but if a job was unsuccessful
1111
- Make sure that there is no infinite loop during execution.
1212
- Make sure all Promises in `getStaticPaths` `resolve` or `reject` correctly.
1313
- Avoid very long timeouts for network requests.
14-
- Increase the timeout by changing the `experimental.pageDataCollectionTimeout` configuration option (default `60` in seconds).
14+
- Increase the timeout by changing the `config.staticPageGenerationTimeout` configuration option (default `60` in seconds).
1515

1616
### Useful Links
1717

errors/static-page-generation-timeout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ When restarted it will retry all uncompleted jobs, but if a job was unsuccessful
1111
- Make sure that there is no infinite loop during execution.
1212
- Make sure all Promises in `getStaticPaths`/`getStaticProps` `resolve` or `reject` correctly.
1313
- Avoid very long timeouts for network requests.
14-
- Increase the timeout by changing the `experimental.staticPageGenerationTimeout` configuration option (default `60` in seconds).
14+
- Increase the timeout by changing the `staticPageGenerationTimeout` configuration option (default `60` in seconds).
1515

1616
### Useful Links
1717

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import Image from 'next/image'
2+
import ViewSource from '../components/view-source'
3+
4+
// Pixel GIF code adapted from https://stackoverflow.com/a/33919020/266535
5+
const keyStr =
6+
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='
7+
8+
const triplet = (e1, e2, e3) =>
9+
keyStr.charAt(e1 >> 2) +
10+
keyStr.charAt(((e1 & 3) << 4) | (e2 >> 4)) +
11+
keyStr.charAt(((e2 & 15) << 2) | (e3 >> 6)) +
12+
keyStr.charAt(e3 & 63)
13+
14+
const rgbDataURL = (r, g, b) =>
15+
`data:image/gif;base64,R0lGODlhAQABAPAA${
16+
triplet(0, r, g) + triplet(b, 255, 255)
17+
}/yH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==`
18+
19+
const Color = () => (
20+
<div>
21+
<ViewSource pathname="pages/color.js" />
22+
<h1>Image Component With Color Data URL</h1>
23+
<Image
24+
alt="Dog"
25+
src="/dog.jpg"
26+
placeholder="blur"
27+
blurDataURL={rgbDataURL(237, 181, 6)}
28+
width={750}
29+
height={1000}
30+
/>
31+
<Image
32+
alt="Cat"
33+
src="/cat.jpg"
34+
placeholder="blur"
35+
blurDataURL={rgbDataURL(2, 129, 210)}
36+
width={750}
37+
height={1000}
38+
/>
39+
</div>
40+
)
41+
42+
export default Color

examples/image-component/pages/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,12 @@ const Index = () => (
8484
</li>
8585
<li>
8686
<Link href="/shimmer">
87-
<a>placeholder="blur" with custom blurDataURL</a>
87+
<a>placeholder="blur" with animated shimmer blurDataURL</a>
88+
</Link>
89+
</li>
90+
<li>
91+
<Link href="/color">
92+
<a>placeholder="blur" with solid color blurDataURL</a>
8893
</Link>
8994
</li>
9095
</ul>
505 KB
Loading
370 KB
Loading

examples/with-sentry/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ It only takes a few steps to create and deploy your own version of this example
2121

2222
You can deploy a copy of this project directly to [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example).
2323

24-
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-sentry&project-name=nextjs-sentry-example&repository-name=nextjs-sentry-example&env=NEXT_PUBLIC_SENTRY_DSN&envDescription=DSN%20Key%20required%20by%20Sentry&envLink=https://github.com/vercel/next.js/tree/canary/examples/with-sentry%23step-1-enable-error-tracking)
24+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-sentry&project-name=nextjs-sentry-example&repository-name=nextjs-sentry-example&integration-ids=oac_5lUsiANun1DEzgLg0NZx5Es3)
2525

2626
This will clone this example to your GitHub org, create a linked project in Vercel, and prompt you to install the Vercel Sentry Integration. (You can read more about the integration [on Vercel](https://vercel.com/integrations/sentry) and in [the Sentry docs](https://docs.sentry.io/product/integrations/deployment/vercel/).)
2727

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
"registry": "https://registry.npmjs.org/"
1818
}
1919
},
20-
"version": "11.1.3-canary.87"
20+
"version": "11.1.3-canary.89"
2121
}

packages/create-next-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-next-app",
3-
"version": "11.1.3-canary.87",
3+
"version": "11.1.3-canary.89",
44
"keywords": [
55
"react",
66
"next",

0 commit comments

Comments
 (0)