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
27 lines
641 B
Plaintext
27 lines
641 B
Plaintext
module.exports = phase => {
|
|
return {
|
|
images: {
|
|
formats: ['image/avif', 'image/webp'],
|
|
imageSizes: [64, 128, 256, 512, 1024],
|
|
domains: ['example.com', 'another.com'],
|
|
remotePatterns: [{ protocol: 'https', hostname: '**.example.com' }],
|
|
localPatterns: [{ pathname: '/assets/**', search: '' }],
|
|
qualities: [25, 50, 75],
|
|
},
|
|
i18n: {
|
|
locales: ['en','nl','fr'],
|
|
defaultLocale: 'en',
|
|
domains: [
|
|
{
|
|
domain: 'example.com',
|
|
defaultLocale: 'en'
|
|
},
|
|
{
|
|
domain: 'example.fr',
|
|
defaultLocale: 'fr'
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|