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

refactor: Support AsyncLocalStorage #553

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

razshlomo
Copy link

This PR refactor the handler code (middlewares and main API function).
The change is to run all functions in one Promise instead of creating a Promise for each middleware.

The Motivation is to support AsyncLocalStorage in order to have a context object cross all middlewares and the main API function.

Thanks.

@vercel
Copy link

vercel bot commented Feb 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-api-decorators ❌ Failed (Inspect) Apr 5, 2024 6:54am

@razshlomo
Copy link
Author

Hey @ggurkal @leeuwis
How can I get review of this one please?
Am I missing something?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant