Skip to content

Commit

Permalink
Clean up vite-node dev server after build
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish committed Feb 12, 2025
1 parent 02f9071 commit 402abc3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/happy-ravens-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/dev": patch
---

Clean up vite-node dev server when build finishes
1 change: 1 addition & 0 deletions packages/remix-dev/vite/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1512,6 +1512,7 @@ export const remixVitePlugin: RemixVitePlugin = (remixUserConfig = {}) => {
},
async buildEnd() {
await viteChildCompiler?.close();
await routesViteNodeContext?.devServer.close();
},
},
{
Expand Down

0 comments on commit 402abc3

Please sign in to comment.