-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fix: astro:server:setup
middleware
#6781
Conversation
🦋 Changeset detectedLatest commit: bc6cab8 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 |
examples/minimal/src/env.d.ts
Outdated
@@ -1 +1,2 @@ | |||
/// <reference path="../.astro/types.d.ts" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the change intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope! Reverting
Changes
astro:server:setup
twice #6693 removed a duplicateastro:server:setup
call fromcreate-vite
. Turns out, this is where the setup hook should be run! By only calling from thecontainer
, we were attaching middlewares after Vite had setup the server. Moving this call to the original plugin withconfigureServer
solves the issue.Testing
Docs