Long-running (1+ min) Vercel Serverless function called from Supabase trigger/function
My project is attempting to trigger a function when a user first saves some content to a Supabase table. There is a function and trigger set up to do this currently. The issue I'm running into is that the length of the serverless function causes a timeout on the database operation if it waits for a response, but Vercel terminates serverless functions once they return a response.
Not sure how to get around this dilema. My guess is that I could stream the response back, but feel that that would cause the same blocking issue.. Essentially I want to kick off this serverless function and not wait for a response.
Any help is greatly appreciated!
Not sure how to get around this dilema. My guess is that I could stream the response back, but feel that that would cause the same blocking issue.. Essentially I want to kick off this serverless function and not wait for a response.
Any help is greatly appreciated!