Help for configuring Bun in Nuxt

Hi everyone, I'm curious if anyone else has hit issues with configuring their idleTimeout to increase while using Bun + Nuxt while serving my built output. I've done searching high and low and can't seem to decipher how to create a custom Nitro preset that extends the Bun preset and sets the idleTimeout value to a custom value. Does anyone have tips/suggestions/examples of how I should proceed?
3 Replies
kapa.ai
kapa.ai15h ago
Hi @fullstackwithsyrup. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I'm sorry, but the knowledge sources do not contain explicit information or examples on how to create a custom Nitro preset that extends the Bun preset and sets the idleTimeout value for Bun when serving a Nuxt built output. The available documentation does mention that you can configure Nitro using the nitro key in your nuxt.config file and that you can set the deployment preset (such as Bun) via the preset option or the NITRO_PRESET environment variable Hosting ProvidersAdvanced Usage. However, there are no details about customizing server-specific options like idleTimeout for the Bun runtime, nor about extending the Bun preset. For advanced Nitro configuration, the docs suggest referring to the Nitro configuration docs, but this is outside the provided knowledge sources. If you need to set custom server options for Bun, you may need to consult the Nitro documentation directly or open an issue in the Nuxt or Nitro repositories for further guidance. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai15h ago
<@1146538178203881562> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
fullstackwithsyrup
fullstackwithsyrupOP14h ago
The AI wasn't able to walk me through it, does anyone else have any pointers? Basically struggling to configure Bun through the layers of Nuxt build + Nitro Server engine

Did you find this page helpful?