Use módulos de nodo en Next.js

// The same way you do it in Node.js
const fetch = require("node-fetch");
Undefined