Files
StevenandGitHub b9d77321d2 fix: handle empty src prop on next/image (#47695)
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))
2023-03-30 20:02:47 +00:00

12 lines
169 B
JavaScript

import Image from 'next/image'
const Page = () => {
return (
<div>
<Image id="img" alt="" width={200} height={300} />
</div>
)
}
export default Page