exports.withImages = (nextConfig = {}) => ({ ...nextConfig, webpack(config, options) { nextConfig = Object.assign( { inlineImageLimit: false, assetPrefix: "" }, nextConfig ); const { isServer, dev } = options; let outputPath = ""; if (isServer && dev) { outputPath = "../"; } else if (isServer) { outputPath = "../../"; } config.module.rules.push({ test: /\.(jpe?g|png|gif|ico|webp|jp2|url|svg)$/, // Next.js already handles url() in css/sass/scss files // issuer: /\.\w+(?