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

Allow async functions in the Vercel edge middleware integration #9334

Merged
merged 4 commits into from
Dec 7, 2023

Conversation

Geo25rey
Copy link
Contributor

@Geo25rey Geo25rey commented Dec 6, 2023

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.

Vercel's Edge Middleware allows async functions so should the Astro wrapper.
Copy link

changeset-bot bot commented Dec 6, 2023

🦋 Changeset detected

Latest 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

@github-actions github-actions bot added pkg: integration Related to any renderer integration (scope) pr: docs A PR that includes documentation for review labels Dec 6, 2023
packages/integrations/vercel/package.json Outdated Show resolved Hide resolved
.changeset/young-spoons-rescue.md Outdated Show resolved Hide resolved
lilnasy and others added 3 commits December 6, 2023 21:08
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
@Geo25rey
Copy link
Contributor Author

Geo25rey commented Dec 6, 2023

Should I squash these commits into one? Does it matter?

@bluwy
Copy link
Member

bluwy commented Dec 7, 2023

You don't have to squash them, when we merge the PR it will be squashed by GitHub.

@Geo25rey
Copy link
Contributor Author

Geo25rey commented Dec 7, 2023

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. 👏👏😊

@bluwy bluwy merged commit dfbc707 into withastro:main Dec 7, 2023
13 checks passed
@astrobot-houston astrobot-houston mentioned this pull request Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: integration Related to any renderer integration (scope) pr: docs A PR that includes documentation for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants