Capítulo 218 de 456
Controls HTTP Keep-Alive for server-side fetch() calls on Node.js versions prior to 18, where Next.js polyfills fetch() with undici and enables Keep-Alive by default.
httpAgentOptions.keepAlive: boolean; set false to disable Keep-Alive for all server-side fetch() calls.module.exports = {
httpAgentOptions: {
keepAlive: false,
},
}
fetch com undici e ativa Keep-Alive por padrão).fetch() do lado servidor.