Replies: 3 comments 2 replies
-
|
I'm curious: does the middleware need to strictly adhere to the Astro Middleware format? Or could it also take the form of a Cloudflare or Vercel Edge Middleware? |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
What's the expected order of these functions when chaining them with the existing user middleware functions? |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Accepted for stage 2: #709 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Body
Summary
The ability for an integration to define middleware so that users do not need to go through the boilerplate of creating a middleware file and importing the functionality.
Background & Motivation
When we built the middleware API we anticipated a need for integrations to hook into it, but we decided not to make that a goal for v1 due to the complexity of ordering. Yet the need keeps coming up for the same reasons as before, integrations want to transparently add middleware.
Goals
Example
Beta Was this translation helpful? Give feedback.
All reactions