Files
StevenandGitHub a9c045de13 feat(next/image): add images.localPatterns config (#70529)
This adds support for `images.localPatterns` config to allow specific
local images to be optimized and (more importantly) block anything that
doesn't match a pattern.
2024-10-01 14:45:10 -07:00

27 lines
447 B
JavaScript

import Image from 'next/image'
import staticImg from './images/static-img.png'
const Page = () => {
return (
<main>
<Image
id="nested-assets"
src="/assets/test.png"
width="200"
height="200"
alt="should work"
/>
<Image
id="static-img"
src={staticImg}
width="200"
height="200"
alt="should work"
/>
</main>
)
}
export default Page