-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Support HTTP2 and Proxy at the same time? #4184
Comments
Yeah this would be really nice to have 👍 . It does feel like the |
Problem solved!my plugin would work ~ |
@williamyorkl Does it also proxy HTTP2 push? |
Linking some related disucssions: #7611 (comment) |
For simple proxy case https://gist.github.com/xfournet/068592b3d1ddd488427b874b23f707bf |
For Go backend development I made https://gitlab.com/tozd/waf which allows proxying Vite requests to Vite while the rest (API calls) is handled by Go during development. |
Hmm, I want it to support HTTP/3.0, is there a way? |
Wait, no... I have waited so long to use Vite/esbuild in Angular with the new dev-server builder, and now you tell me I am back in 2013 with http/1.1. 🥲 |
Clear and concise description of the problem
Hi there, is there any way that I can turn on the
https
andproxy
options on vite.config.js at the same time ? Because I want to use http2 and proxy...Because as what vite officially in the document states that if the
proxy
option is on, then it will downgrade andTSL
only, which mean it will losehttp2
function..Suggested solution
as I have tried some ways, but it all seem fails....
use
http-proxy-middleware
and create a middleware proxy,using theconfigreServer
API that vite provide, then I could turn onhttps
option invite.config.js
, but it seems that it wouldn't work, because I am facing this error....http-party/node-http-proxy#1237
Highly appreciated if there is a workaround...
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: