-
-
Notifications
You must be signed in to change notification settings - Fork 6.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
6.0.0-beta.10 regression, https server lost http2 support (back to http1.1) #18786
Comments
Updated description and title; This got introduced in 6.0.0-beta.10 and is affecting the stable release. The 6.0.0-beta.9 release does not seem to include the regression. |
|
It should be set as |
Tested and confirmed that 6.0.1 does fix the regression, thank you!!! |
Describe the bug
Starting with the 6.0.0-beta.10 release (inclusive of the stable v6.0.0 release), using
server.https
in the Vite config no longer enables http2 as the doc indicates:https://vite.dev/config/server-options#server-https
Instead, all assets are served over http1.1. This can slow down loading assets from the dev server for complex project with lots of modules using https, but this is also critical as it breaks streaming support through custom dev server reverse proxy plugins (http1.1 does not support more than a few concurrent streaming connections)
Reproduction
https://stackblitz.com/edit/vitejs-vite-1lmesq?file=vite.config.ts
Steps to reproduce
Here's a vite.config.ts configuration with a self-signed certificate to reproduce this case:
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: