Commit 0d2d4b5
authored
use
## Description
This PR:
- removes the `nextImageExportOptimizer` directory with the rescaled
images,
- goes back to using `next/image` instead of
`next-image-export-optimizer`,
- switches off `output: export`
- I considered using `lqip-modern`, but `plaiceholder` just fits really
well here and required very little code to integrate
@saihaj I can't believe you and that one comment from Benjie in the WG
issue got me to do this, but here it is.
This isn't _just_ a refactor, because the new placeholder do in fact
look better.
### How to use the placeholders?
- Use `placeholder=blur` with `blurDataURL` whenever you want something
very smooth.
- You don't have to pass `blurDataURL` explicitly if the `src` is
`StaticImageData` from file import.
- Use `plaiceholder` with `getStaticProps` in `pages` and server
components in `app` to get LQIPs for remote images.
- Use `placeholder={`data:image/${base64Placeholder}`} whenever you want
something a bit pixelated. Normally I wouldn't but in some places it
looks very appropriate with our design system.
**Disclaimer: This PR can be reverted if it turns out Vercel's Image
Optimization API is prohibitively expensive.**
### Context
One historic reason for using `next-image-export-optimizer` could have
been the incompatibility of `next/image` with `output: export`. However,
SSG in Next.js is no longer locked under `output: export`.next/image again (#2163)1 parent fe49aad commit 0d2d4b5
File tree
2,961 files changed
+636
-568
lines changed- patches
- public/nextImageExportOptimizer
- scripts/get-github-info
- src
- app
- conf
- 2023
- gallery
- schedule
- speakers
- 2024
- schedule
- speakers
- 2025
- components
- gallery-strip
- hero
- register-today
- testimonials
- top-minds
- speakers
- [id]
- _components
- speakers
- _design-system/utils
- code/language-support/swift-objective-c-ios/client
- components/interactive-code-block
- pages
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
2,961 files changed
+636
-568
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 62 | | |
75 | 63 | | |
76 | 64 | | |
77 | 65 | | |
78 | 66 | | |
79 | 67 | | |
80 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
81 | 78 | | |
82 | 79 | | |
83 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
112 | | - | |
113 | | - | |
114 | 113 | | |
115 | | - | |
116 | | - | |
117 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
118 | 120 | | |
119 | | - | |
120 | 121 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | 122 | | |
134 | 123 | | |
135 | 124 | | |
| |||
180 | 169 | | |
181 | 170 | | |
182 | 171 | | |
183 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
184 | 175 | | |
185 | 176 | | |
186 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments