We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b5d587 commit c90b7d9Copy full SHA for c90b7d9
packages/vite/src/node/server/middlewares/transform.ts
@@ -76,6 +76,8 @@ export function transformMiddleware(
76
// something unexpected has happened. In this case, Vite
77
// returns an empty response that will error.
78
setTimeout(() => {
79
+ // Don't do anything if response has already been sent
80
+ if (res.writableEnded) return
81
// status code request timeout
82
res.statusCode = 408
83
res.end(
0 commit comments