Skip to content

Commit

Permalink
fix: do not end server process in CI (#3659)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanVS committed Jun 24, 2021
1 parent aed3338 commit 5999444
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite/src/node/server/index.ts
Expand Up @@ -401,8 +401,9 @@ export async function createServer(

process.once('SIGTERM', exitProcess)

if (!process.stdin.isTTY) {
if (process.env.CI !== 'true') {
process.stdin.on('end', exitProcess)
process.stdin.resume()
}

watcher.on('change', async (file) => {
Expand Down

0 comments on commit 5999444

Please sign in to comment.