Files
next.js/test/integration/telemetry/next.config.i18n-images
StevenandGitHub d70595e5b6 feat(next/image): add support for images.qualities in next.config (#74257)
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
2025-01-03 20:43:29 +00:00

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'
}
]
}
}
}