mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This PR adds support for `images.qualities` configuration which is an allowlist of qualities that can be used with the quality prop on the Image component. - Depends on https://github.com/vercel/vercel/pull/12792
17 lines
392 B
JavaScript
17 lines
392 B
JavaScript
import Image from 'next/image'
|
|
|
|
import src from './images/test.png'
|
|
|
|
const Page = () => {
|
|
return (
|
|
<main>
|
|
<Image alt="q-undefined" id="q-undefined" src={src} />
|
|
<Image alt="q-42" id="q-42" quality={42} src={src} />
|
|
<Image alt="q-69" id="q-69" quality={69} src={src} />
|
|
<Image alt="q-88" id="q-88" quality={88} src={src} />
|
|
</main>
|
|
)
|
|
}
|
|
|
|
export default Page
|