Skip to content

Instantly share code, notes, and snippets.

@evoratec
Last active Jun 22, 2021
Embed
What would you like to do?
Solución Next 10 y 11 actualización Webpack
const { resolveHref } = require("next/dist/next-server/lib/router/router");
module.exports = {
env: {
GA_ENV: process.env.GA_ENV,
},
webpack: (config, { isServer }) => {
// Fixes npm packages that depend on `fs` module
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false
}
}
return config;
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment