httpAgentOptions
18 より前の Node.jsVersion では、Next.js が自動的にfetch()をundiciで polyfills し、HTTP Keep-Alive を default で有効にします。
すべての fetch() 呼び出しのための HTTP Keep-Alive を server-side で無効にするには、next.config.jsを開き、httpAgentOptions config を追加します:
next.config.js
module.exports = {
httpAgentOptions: {
keepAlive: false,
},
}