001a67dfd9
This PR adds a test fixture `e2e/app-dir/next-image` to ensure `next/image` works with the `app` dir.
17 lines
357 B
JavaScript
17 lines
357 B
JavaScript
import Image from 'next/image'
|
|
import testPng from '../images/test.png'
|
|
|
|
export default function Layout({ children }) {
|
|
return (
|
|
<html>
|
|
<head>
|
|
<title>Hello World</title>
|
|
</head>
|
|
<body>
|
|
<h2>app-layout</h2>
|
|
<Image id="app-layout" src={testPng} quality={85} />
|
|
{children}
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|