module.exports = { target: 'serverless', webpack(config) { config.module.rules.push({ test: /\.svg$/, use: ['@svgr/webpack'], }) return config }, }