Next route handler send response and then continue

Hello, wondering if anyone has a solution or alternatively a decent "work around" here. I'm working with stripe's webhooks and they want you to acknowledge that you received an event as early as possible by responding with a 200 status code, before doing any heavy/expensive tasks. (It's also a requirement in certain cases to work with the items in the event that you have acknowledged it first). However seeing as the way I send a response in a route handler is to return from the function that's not really possible (from what I can see). Looking for any advice on how to do this in a relatively good way. Edit: If it's any help I am working with a newly created T3 app with the app router, trpc, and prisma.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server