-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Drop spdy in favor of node:http2
#5408
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
Comments
basically its issue solve type the command :::- npm config set legacy-peer-deps true |
We already support
You can use pure
Unfortunately express doesn't support http2, so it will not work |
@alexander-akait For Does specifying const connect = require("connect");
module.exports = {
// ...
devServer: {
server: {
server: "http2",
app: () => connect(),
},
},
}; Shouldn't it be const connect = require("connect");
module.exports = {
// ...
devServer: {
server: {
type: "http2",
},
app: () => connect(),
},
}; Here is the snippet how server: {
type: 'https',
options: {
key: resolve(__dirname, join('some', 'path', 'dev.key')),
cert: resolve(__dirname, join('some.', 'path', 'dev.crt')),
ca: resolve(__dirname, join('som', 'path', 'dev.ca.pem')),
},
}, How would it work for HTTP2 with SSL configuration? Any guidance would be highly appreciated |
@kimyu92 Can you show me where we have bad documentation? For options you can use: server: {
type: 'http2',
options: {
key: resolve(__dirname, join('some', 'path', 'dev.key')),
cert: resolve(__dirname, join('some.', 'path', 'dev.crt')),
ca: resolve(__dirname, join('som', 'path', 'dev.ca.pem')),
},
}, |
Not sure it's typo or what but it wasn't clear how to cooperate with SSL as well https://github.com/webpack/webpack-dev-server/tree/master/examples/server/http2 |
Aside from the example above, in the official documentation, there is no On top of that, there is also no explanation of |
@kimyu92 You can send a PR to update our docs, look like yes, we forgot to add it |
Modification Proposal
Remove spdy and use node built-in http2 server. spdy is broken since node 16 (source. Perhaps
node:http2
could be wrapped in a way that it would be compatible with express.Expected Behavior / Situation
Usage of http2 in favor spdy. Support for http2 and deprecation of spdy.
Actual Behavior / Situation
Lack of http2 option and only support for spdy.
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationRelevant discussions/PRs:
The text was updated successfully, but these errors were encountered: