Loading next.config.js +22 −3 Original line number Diff line number Diff line Loading @@ -2,8 +2,27 @@ const nextConfig = { reactStrictMode: false, env: { REACT_APP_HTTP_BASE_URL: process.env.REACT_APP_HTTP_BASE_URL, REACT_APP_HTTP_BASE_URL: process.env.REACT_APP_HTTP_BASE_URL }, webpack: ( config, { buildId, dev, isServer, defaultLoaders, nextRuntime, webpack } ) => { // console.log(config); // Important: return the modified config // return config; return { ...config, resolve: { ...config.resolve, fallback: { ...config.resolve.fallback, fs: false } } }; } }; module.exports = nextConfig module.exports = nextConfig; Loading
next.config.js +22 −3 Original line number Diff line number Diff line Loading @@ -2,8 +2,27 @@ const nextConfig = { reactStrictMode: false, env: { REACT_APP_HTTP_BASE_URL: process.env.REACT_APP_HTTP_BASE_URL, REACT_APP_HTTP_BASE_URL: process.env.REACT_APP_HTTP_BASE_URL }, webpack: ( config, { buildId, dev, isServer, defaultLoaders, nextRuntime, webpack } ) => { // console.log(config); // Important: return the modified config // return config; return { ...config, resolve: { ...config.resolve, fallback: { ...config.resolve.fallback, fs: false } } }; } }; module.exports = nextConfig module.exports = nextConfig;