#SIGTERM hook/teardown logic

14 messages · Page 1 of 1 (latest)

quiet blade
#

I have a TanStack Start app, and it needs to perform some teardown logic when receiving a SIGTERM. What would be a suitable place for such a hook?

blissful drift
#

you mean "where would I install that event handler"?

quiet blade
#

Yes, basically.

blissful drift
#

would do it in server.ts (on the alpha branch)

quiet blade
#

Hm, is there any chance to get a pointer to the repo? I checked the alpha branch and all the examples, but I didn't find an indicator on how to use the server.ts.

blissful drift
#

we have not documented this yet

quiet blade
#

I see, thanks for the pointer, @blissful drift

#

The alpha branch is all about migrating away from Nitro and Vinxi, right? How close is it to being promoted to beta?

blissful drift
#

pretty close

#

we still need to fix some bugs

#

before we can merge to main

quiet blade
#

Sounds good. I'm a little hesitant to switch to the alpha in our production app, though. On the other hand, we really need the possibility for some teardown logic. Are there any hard breaking changes that I need to take into account when using the alpha?

blissful drift