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