Skip to content

Commit af713f6

Browse files
committed
chore: use legacy image component for now
1 parent c02aed0 commit af713f6

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

demos/default/pages/broken-image.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Image from 'next/image'
1+
import Image from 'next/legacy/image'
22

33
// This should cause an error, because broken-domain is not part of the configured next.config.js image domains
44
const Images = () => (

demos/default/pages/image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Image from 'next/image'
1+
import Image from 'next/legacy/image'
22
import img from './unsplash.jpg'
33
import logo from './logomark.svg'
44

demos/static-root/pages/index.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Head from 'next/head'
2-
import Image from 'next/image'
2+
import Image from 'next/legacy/image'
33
import { useRouter } from 'next/router'
44
import styles from '../styles/Home.module.css'
55

@@ -21,8 +21,7 @@ export default function Home() {
2121
<p>The current locale is {locale}</p>
2222

2323
<p className={styles.description}>
24-
Get started by editing{' '}
25-
<code className={styles.code}>pages/index.js</code>
24+
Get started by editing <code className={styles.code}>pages/index.js</code>
2625
</p>
2726

2827
<div className={styles.grid}>
@@ -36,17 +35,12 @@ export default function Home() {
3635
<p>Learn about Next.js in an interactive course with quizzes!</p>
3736
</a>
3837

39-
<a
40-
href="https://github.com/vercel/next.js/tree/master/examples"
41-
className={styles.card}
42-
>
38+
<a href="https://github.com/vercel/next.js/tree/master/examples" className={styles.card}>
4339
<h2>Examples &rarr;</h2>
4440
<p>Discover and deploy boilerplate example Next.js projects.</p>
4541
</a>
4642
</div>
4743
</main>
48-
49-
5044
</div>
5145
)
5246
}

0 commit comments

Comments
 (0)