962535752b
This ensures the default path used for the `next/image` component includes the `basePath` when configured. Additional tests have also been added to ensure the image component is working correctly with `basePath` configured. Fixes: https://github.com/vercel/next.js/issues/19711
21 lines
416 B
JavaScript
21 lines
416 B
JavaScript
import Image from 'next/image'
|
|
import React from 'react'
|
|
|
|
const Page = () => {
|
|
return (
|
|
<div>
|
|
<p>Hello World</p>
|
|
<div style={{ visibility: 'hidden' }}>
|
|
<Image
|
|
id="hidden-image"
|
|
src="/docs/test.jpg"
|
|
width="400"
|
|
height="400"
|
|
></Image>
|
|
</div>
|
|
<p id="stubtext">This is the hidden parent page</p>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Page
|