-
Notifications
You must be signed in to change notification settings - Fork 401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Returning a promise from requestListener
so we know when processing is done
#755
Comments
This is an interesting idea. Returning a Here's the issue I think it might cause: If a
Aside from that issue, I think it would technically be a breaking change. Currently, when the These problems both feel a little theoretical at this point, esp since this release shipped so recently. I'm open to your thoughts on it. Meanwhile, I'm going to go create a little toy Next.js app to see if I have any bright ideas/suggestions. I'll report back. |
I got a Next.js app working without the warning. Got it deployed to Vercel as well. I split things up a bit so that the Then in What do you think? |
Oh! I didn’t know about the `externalResolver` option.
That looks like it does it
…On Thu, Jan 14, 2021 at 2:52 AM Ankur Oberoi ***@***.***> wrote:
I got a Next.js app working without the warning. Got it deployed to Vercel
as well.
I split things up a bit so that the pages/api/slack/[...all].js
<https://github.com/aoberoi/nextjs-examples-with-bolt/blob/2c9491537337a376b7162c1db9767963ebc64565/pages/api/slack/%5B...all%5D.js>
file just sets up the HTTP receiver.
Then in lib/bolt.js
<https://github.com/aoberoi/nextjs-examples-with-bolt/blob/main/lib/bolt.js>
i did all the normal Bolt things.
What do you think?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#755 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFMAUMNZXXKB7ICSBZQXOLSZ3EIHANCNFSM4WBZ2XRA>
.
|
If I understand the above discussion, it seems we can close this issue now. I will close this after waiting for a few more days. |
👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. |
Description
Hooking bolt into next.js and got it working with:
Next.js will complain that:
From here: vercel/next.js#10439 (comment) we need to return a promise so it knows when to kill the function on it's end.
Instead of wrapping in an async closure, can we just return a promise?
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)The text was updated successfully, but these errors were encountered: