httpAgentOptions
Node.js バージョン 18 より前のバージョンでは、Next.js は自動的に fetch() を undici でポリフィルし、HTTP Keep-Alive をデフォルトで有効にします。
サーバーサイドのすべての fetch() 呼び出しで HTTP Keep-Alive を無効にするには、next.config.js を開き、httpAgentOptions 設定を追加してください。
next.config.js
module.exports = {
httpAgentOptions: {
keepAlive: false,
},
}役に立ちましたか?