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

deprecation(vercel): vercel-edge-middleware.js file #10476

Merged
merged 4 commits into from
Mar 20, 2024

Conversation

lilnasy
Copy link
Contributor

@lilnasy lilnasy commented Mar 18, 2024

Changes

  • console.log(context)

image

Testing

  • Edge runtime behavior. Manually tested.

Docs

Copy link

changeset-bot bot commented Mar 18, 2024

🦋 Changeset detected

Latest commit: 94f9d79

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 the pkg: integration Related to any renderer integration (scope) label Mar 18, 2024
Copy link
Contributor

@bholmesdev bholmesdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎵 I'm on the edge. CDN. And I'm deprecating functions with you 🎵

Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of things. The first one (the important one) is that we must expose the types to the users to augment the Astro.locals types.

The second one (less important), is that Netlify and Cloudflare adapters have using their named object e.g. Astro.locals.netlify. It would be nice if we could align it, but it's nice to have.

@lilnasy
Copy link
Contributor Author

lilnasy commented Mar 19, 2024

@ematipico addressed

@ematipico ematipico self-requested a review March 19, 2024 14:21
Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I left a comment (now outdated) in the docs PR too.

@lilnasy
Copy link
Contributor Author

lilnasy commented Mar 19, 2024

@ematipico Added docs for typing here: withastro/docs#7485

@lilnasy lilnasy merged commit cfbaa8a into withastro:main Mar 20, 2024
14 checks passed
@lilnasy lilnasy deleted the vercel-middleware-simplification branch March 20, 2024 14:33
@astrobot-houston astrobot-houston mentioned this pull request Mar 20, 2024
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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants