Skip to content
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

Support for waitUntil from @vercel/functions #96

Open
nathanclevenger opened this issue Oct 12, 2024 · 1 comment
Open

Support for waitUntil from @vercel/functions #96

nathanclevenger opened this issue Oct 12, 2024 · 1 comment
Labels
enhancement New feature or request planned

Comments

@nathanclevenger
Copy link

To allow more compatibility between NextJS on Cloudflare for applications coming from Vercel, it would be extremely helpful if the waitUntil function @vercel/functions (https://vercel.com/docs/functions/vercel-functions-package#waituntil) could be mapped to getCloudflareContext().ctx.waitUntil

Is this possible? And if so, is this planned or on the roadmap?

@vicb vicb added enhancement New feature or request planned labels Oct 12, 2024
@shashankboosi
Copy link
Contributor

Hey @nathanclevenger,

I was going through the workers documentation and I can see that in their context API they already support the use of waitUntil function as seen here but I don't know if the implementation from the @vercel/functions is the same. Hopefully both of them would have adapted this from the waitUntil used in service workers. I hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request planned
Projects
None yet
Development

No branches or pull requests

3 participants