-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Middleware not updating during dev #15993
Copy link
Copy link
Closed
Labels
- P4: importantViolate documented behavior or significantly impacts performance (priority)Violate documented behavior or significantly impacts performance (priority)pkg: astroRelated to the core `astro` package (scope)Related to the core `astro` package (scope)
Metadata
Metadata
Assignees
Labels
- P4: importantViolate documented behavior or significantly impacts performance (priority)Violate documented behavior or significantly impacts performance (priority)pkg: astroRelated to the core `astro` package (scope)Related to the core `astro` package (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Having a basic middleware like this, works fine:
(the output is "a")
but if I change it to:
The output is still "a", and a full reload of the dev server is needed to have it change to "b"
What's the expected result?
The expected result is not having to reload the dev server for every middleware change.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-vwqjqzv6?file=src%2Fmiddleware.ts
Participation