Skip to content

Commit

Permalink
Fix HMR on secure server (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
stramel committed Jun 10, 2020
1 parent 7ed25ce commit 5366dfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/dev.ts
Expand Up @@ -448,7 +448,8 @@ export async function command(commandOptions: CommandOptions) {
}

const createServer = credentials
? (requestHandler) => http2.createSecureServer(credentials!, requestHandler)
? (requestHandler) =>
http2.createSecureServer({...credentials!, allowHTTP1: true}, requestHandler)
: (requestHandler) => http.createServer(requestHandler);

const server = createServer(async (req, res) => {
Expand Down

0 comments on commit 5366dfb

Please sign in to comment.