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
13 lines
258 B
JavaScript
13 lines
258 B
JavaScript
import React from 'react'
|
|
import Image from 'next/image'
|
|
|
|
const Page = () => {
|
|
return (
|
|
<div>
|
|
<p>Invalid Protocol Relative Source</p>
|
|
<Image src="//assets.example.com/img.jpg" width="10" height="10" />
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Page
|