Skip to content
Discussion options

You must be logged in to vote

Yea what I did was create a separate function that returned a promise. And then I awaited that function.
The way vercel handles serverless functions caused it to skip the callback, so explicitly wrapping the request in something like:
return new Promise((resolve, reject) => {
worked for me

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fraserburch
Comment options

Answer selected by fraserburch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants