next.config.js
/** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, webpack: (config, { dev }) => { config.resolve.fallback = { fs: false, net: false, tls: false }; if (dev !== false) config.externals.push( "fast-json-stringify", "@whatwg-node/fetch", "long", "uglify-es", "@graphql-mesh/utils", "@graphql-mesh/tools", "@graphql-tools/url-loader" ); return config; }, }; module.exports = nextConfig;