rsnext/test/integration/image-component/base-path/pages/invalid-src.js
JJ Kasper 962535752b
Ensure next/image loads correctly with basePath (#20592)
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
2020-12-30 01:57:08 +00:00

13 lines
239 B
JavaScript

import React from 'react'
import Image from 'next/image'
const Page = () => {
return (
<div>
<p>Invalid Source</p>
<Image src="https://google.com/test.png" width="10" height="10" />
</div>
)
}
export default Page