mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
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.
18 lines
263 B
JavaScript
18 lines
263 B
JavaScript
import Image from 'next/image'
|
|
|
|
const Page = () => {
|
|
return (
|
|
<main>
|
|
<Image
|
|
id="nested-blocked"
|
|
src="/blocked/test.png"
|
|
width="200"
|
|
height="200"
|
|
alt="should fail"
|
|
/>
|
|
</main>
|
|
)
|
|
}
|
|
|
|
export default Page
|