0443604d04
Sonarlint, ESLint, you name it; it's fixed AI summary of some changes: feat: update image handling and optimization in Next.js The changes in this commit update the handling and optimization of images in Next.js. - The `Image` component from the `next/image` package is now used instead of the regular `img` tag. This allows for better handling and optimization of images in Next.js applications. - The `unoptimized` property in the `nextConfig` object is set to `false`, which means that images will be optimized by default. This improves the performance and loading speed of the application. - The `remotePatterns` property in the `nextConfig` object is added to specify remote patterns for image optimization. This allows for more control over which images should be optimized and which should not. These changes were made to enhance the performance and user experience of the application by optimizing the handling of images.
16 lines
290 B
JavaScript
16 lines
290 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
images: {
|
|
unoptimized: false,
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'upload.wikimedia.org',
|
|
port: '',
|
|
pathname: '/**',
|
|
},
|
|
],
|
|
},
|
|
}
|
|
|
|
export default nextConfig
|