File tree Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 1
- import Image from 'next/image'
1
+ import Image from 'next/legacy/ image'
2
2
3
3
// This should cause an error, because broken-domain is not part of the configured next.config.js image domains
4
4
const Images = ( ) => (
Original file line number Diff line number Diff line change 1
- import Image from 'next/image'
1
+ import Image from 'next/legacy/ image'
2
2
import img from './unsplash.jpg'
3
3
import logo from './logomark.svg'
4
4
Original file line number Diff line number Diff line change 1
1
import Head from 'next/head'
2
- import Image from 'next/image'
2
+ import Image from 'next/legacy/ image'
3
3
import { useRouter } from 'next/router'
4
4
import styles from '../styles/Home.module.css'
5
5
@@ -21,8 +21,7 @@ export default function Home() {
21
21
< p > The current locale is { locale } </ p >
22
22
23
23
< 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 >
26
25
</ p >
27
26
28
27
< div className = { styles . grid } >
@@ -36,17 +35,12 @@ export default function Home() {
36
35
< p > Learn about Next.js in an interactive course with quizzes!</ p >
37
36
</ a >
38
37
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 } >
43
39
< h2 > Examples →</ h2 >
44
40
< p > Discover and deploy boilerplate example Next.js projects.</ p >
45
41
</ a >
46
42
</ div >
47
43
</ main >
48
-
49
-
50
44
</ div >
51
45
)
52
46
}
You can’t perform that action at this time.
0 commit comments