/** @type {import('next').NextConfig} */ const nextConfig = { images: { deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840], imageSizes: [16, 32, 48, 64, 96, 128, 256, 384], minimumCacheTTL: 60, remotePatterns: [ { protocol: 'http', hostname: '**.aliyuncs.com', port: '', pathname: '/**', }, { protocol: 'https', hostname: '**.aliyuncs.com', port: '', pathname: '/**', }, ], }, webpack(config) { config.module.rules.push({ test: /\.svg$/, use: '@svgr/webpack', }) return config }, } module.exports = nextConfig