const withBundleAnalyzer = require('@next/bundle-analyzer')({ enabled: process.env.ANALYZE === 'true', }) module.exports = withBundleAnalyzer({ target: 'serverless', webpack(config) { config.module.rules.push({ test: /\.svg$/, use: ['@svgr/webpack'], }) return config }, })