git » repo » main » tree

[main] / services / funding / frontend / next.config.js.production

/** @type {import('next').NextConfig} */
const nextConfig = {
    output: 'export',
    trailingSlash: true,

    // See https://github.com/vercel/next.js/issues/44273
    webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
        config.externals.push({
            'utf-8-validate': 'commonjs utf-8-validate',
            'bufferutil': 'commonjs bufferutil',
            'encoding': 'commonjs encoding',
        });
        return config;
    },

    // See https://nextjs.org/docs/pages/api-reference/components/image#unoptimized
    images: {
        unoptimized: true,
    },
}

module.exports = nextConfig