N
Nuxt3mo ago
JJ

Is there an equivalent to unstable_after() in h3?

https://nextjs.org/docs/app/api-reference/functions/unstable_after Im running into an issue with stripe where I need to respond quickly before doing some longer running tasks. Does Nuxt/nitro/h3 have some version of unstable_after() where i can send off a 200 status code then keep doing work in a serverless env?
Functions: unstable_after | Next.js
API Reference for the unstable_after function.
7 Replies
JJ
JJOP3mo ago
Tasks - Nitro
Nitro tasks allow on-off operations in runtime.
Gerbuuun
Gerbuuun3mo ago
event.waitUntil
JJ
JJOP3mo ago
Sweeeeet thanks
Gerbuuun
Gerbuuun3mo ago
Functions: unstable_after | Next.js
API Reference for the unstable_after function.
JJ
JJOP3mo ago
GitHub
Support deferred functions with waitUntil · Issue #1705 · unjs/ni...
Describe the feature I have an endpoint I don't want the user to wait while I talk to third party apis that isn't critical to the response So such logic could be run after the response has ...
JJ
JJOP3mo ago
using the object syntax afterResponse Hook
Gerbuuun
Gerbuuun3mo ago
Seems like it. I’ve never used h3 object syntax
Want results from more Discord servers?
Add your server