Tengo los siguientes ajustes de configuración:
module.exports = { images: { domains: [ "ticket-t01.s3.eu-central-1.amazonaws.com", "media.istockphoto.com", ], deviceSizes: [320, 375, 450, 540, 640, 750, 828, 1080, 1200, 1920], }, reactStrictMode: true, poweredByHeader: false, async redirects() { return [ { source: "/", destination: "/hu", permanent: true, }, ]; }, }; const withBundleAnalyzer = require("@next/bundle-analyzer")({ enabled: process.env.ANALYZE === "true", }); module.exports = withBundleAnalyzer({}); pero claramente el primer module.exports . Las exportaciones no se tienen en cuenta. ¿Cómo podría combinarlos?
const withBundleAnalyzer = require("@next/bundle-analyzer")({ enabled: process.env.ANALYZE === "true", }); module.exports = withBundleAnalyzer({ images: { domains: [ "ticket-t01.s3.eu-central-1.amazonaws.com", "media.istockphoto.com", ], deviceSizes: [320, 375, 450, 540, 640, 750, 828, 1080, 1200, 1920], }, reactStrictMode: true, poweredByHeader: false, async redirects() { return [ { source: "/", destination: "/hu", permanent: true, }, ]; }, });