Setting Bun server options?
How can I set the server options for the bun adapter? I need to change the
idleTimeout
because I have a server fn that takes longer than 10s to run which keeps timing out. I tracked this down to Nitro but can't find any documentation or examples there of how to actually set options4 Replies
xenial-black•8mo ago
how does it work with pure nitro?
optimistic-goldOP•8mo ago
Not sure, I posted a question on their Github discussions there. I don't see anything in the docs that indicates how to do this.
xenial-black•8mo ago
ok we need to know this since we are "just" wrapping nitro
optimistic-goldOP•8mo ago
I was able to figure this out, I cloned the Bun nitro preset with an
idleTimeout
:
Then set it as the server entry point in app.config.ts
: