-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Allow async functions in the Vercel edge middleware integration #9334
Conversation
Vercel's Edge Middleware allows async functions so should the Astro wrapper.
🦋 Changeset detectedLatest commit: 5ba92f1 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
Should I squash these commits into one? Does it matter? |
You don't have to squash them, when we merge the PR it will be squashed by GitHub. |
Hey @bluwy @lilnasy @florian-lefebvre I just want to say thanks for making my first PR with Astro very straightforward. This has been my best developer experience FOSS or not. Period. 👏👏😊 |
Changes
Vercel's Edge Middleware allows async functions so should the Astro wrapper.
Note: I bumped the minor version in this commit. Was I supposed to do that? It wasn't clear in the CONTRIBUTE.md
Testing
No tests needed. This is a very small change that doesn't break anything. The
await
keyword in JavaScript waits for a Promise to resolve, if it is a Promise. Otherwise,await
returns the value it's being called on.Docs
No docs added. This is just a bugfix.