You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, sending a request to a pathname that is not matched by anything in the pages directory, will respond with a Status Code 404 Not Found, i.e., the response set by the middleware is not respected.
What's the expected result?
The Status Code set in the response by the middleware should be respected.
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Given the following middleware, every request should respond with a Status Code 200 OK:
However, sending a request to a pathname that is not matched by anything in the pages directory, will respond with a Status Code 404 Not Found, i.e., the response set by the middleware is not respected.
What's the expected result?
The Status Code set in the response by the middleware should be respected.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-bzdjbw?file=src%2Fmiddleware.ts
Participation
The text was updated successfully, but these errors were encountered: