CoolFace
Apppublic

wang-dev/bingo

sourceHugging Facemitupdated 3y agoView on Hugging Face
0likes
next.config.js39 linesDownload Raw Back to root
1/** @type {import('next').NextConfig} */2const nextConfig = {3  // output: 'export',4  // assetPrefix: '.',5  webpack: (config, { isServer }) => {6    if (!isServer) {7      config.resolve = {8        ...config.resolve,9        fallback: {10          'bufferutil': false,11          'utf-8-validate': false,12          http: false,13          https: false,14          stream: false,15          // fixes proxy-agent dependencies16          net: false,17          dns: false,18          tls: false,19          assert: false,20          // fixes next-i18next dependencies21          path: false,22          fs: false,23          // fixes mapbox dependencies24          events: false,25          // fixes sentry dependencies26          process: false27        }28      };29    }30    config.module.exprContextCritical = false;31 32    return config;33  },34}35 36module.exports = (...args) => {37  return nextConfig38}39