mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Previously, `next start` was incorrectly trying to optimize an empty `src` prop. This PR fixes the behavior so that empty `src` will automatically set `unoptimized` (same behavior as data urls). fix NEXT-915 ([link](https://linear.app/vercel/issue/NEXT-915))
12 lines
176 B
JavaScript
12 lines
176 B
JavaScript
import Image from 'next/image'
|
|
|
|
const Page = () => {
|
|
return (
|
|
<div>
|
|
<Image id="img" src="" alt="" width={200} height={300} />
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Page
|