Skip to content

feat: apply some middlewares before configurePreviewServer hook #20224

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

Conversation

sapphi-red
Copy link
Member

Description

Similar with #20222, but for the preview server.

The moved middlewares are:

  • corsMiddleware
  • hostValidationMiddleware

timeMiddleware and rejectInvalidRequestMiddleware does not exist in the preview server.

@sapphi-red sapphi-red marked this pull request as ready for review June 17, 2025 02:30
@sapphi-red sapphi-red added breaking change p2-nice-to-have Not breaking anything but nice to have (priority) labels Jun 17, 2025
@sapphi-red
Copy link
Member Author

Merging as I assume this should have been included in #20222

@sapphi-red sapphi-red merged commit b989c42 into vitejs:main Jun 17, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change p2-nice-to-have Not breaking anything but nice to have (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant