Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

fix: correctly pass locals from Netlify edge middleware#488

Merged
ascorbic merged 3 commits intomainfrom
ntl-middleware-locals
Dec 16, 2024
Merged

fix: correctly pass locals from Netlify edge middleware#488
ascorbic merged 3 commits intomainfrom
ntl-middleware-locals

Conversation

@ascorbic
Copy link
Copy Markdown
Contributor

Changes

withastro/astro#12647 changed the way locals need to be passed to middleware. This PR updates the Netlify adapter to use this.

Fixes #486

Testing

Manually tested, and added test

Docs

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Dec 16, 2024

🦋 Changeset detected

Latest commit: 99ae754

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@astrojs/netlify Patch
@test/netlify-hosted-astro-project Patch

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

Comment thread packages/netlify/src/index.ts Outdated
Comment thread packages/netlify/src/index.ts Outdated
@ascorbic ascorbic merged commit f3739be into main Dec 16, 2024
@github-actions github-actions Bot mentioned this pull request Dec 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[netlify] [middleware] [edge] custom edge middleware are not setting locals (when running at edge)

2 participants