Skip to content
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

Vite dev-server HTTP2 support #26980

Closed
muuvmuuv opened this issue Jan 27, 2024 · 3 comments
Closed

Vite dev-server HTTP2 support #26980

muuvmuuv opened this issue Jan 27, 2024 · 3 comments

Comments

@muuvmuuv
Copy link

Command

serve

Description

Would it be possible or in scope to support HTTP2 for Vite dev-server?

There is this issue here that states Vite itself won't, but from one comment, a plugin can be created to use http2-proxy.

Issue: vitejs/vite#4184
Possible solution: https://gist.github.com/xfournet/068592b3d1ddd488427b874b23f707bf

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

@alan-agius4
Copy link
Collaborator

Hi @muuvmuuv,

HTTP2 does work unless the proxy option is enabled, which is the same with webpack-dev-server. Using the mentioned package and plugin is not really an option as the it does not provide most of features that node-http-proxy supports.

Overall, this seems to be more of an issue that needs to be handled upstream.

@alan-agius4 alan-agius4 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 29, 2024
@muuvmuuv
Copy link
Author

OK, but it is quite common to use the proxy setting. But yes, would be more a task on Vite end. Just found that maintained fork here: https://github.com/unjs/httpxy
Just in case.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants