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 b42adba commit 301a8a9Copy full SHA for 301a8a9
vite.config.js
@@ -16,8 +16,9 @@ const hydeVitePlugin = () => ({
16
fs.writeFileSync(path.resolve(process.cwd(), 'app/storage/framework/cache/vite.hot'), '');
17
18
// Remove hot file when Vite server closes
19
- server.httpServer?.on('close', () => {
20
- fs.unlinkSync(path.resolve(process.cwd(), 'app/storage/framework/cache/vite.hot'));
+ process.on('SIGINT', () => {
+ fs.rmSync(path.resolve(process.cwd(), 'app/storage/framework/cache/vite.hot'));
21
+ process.exit();
22
});
23
24
// Render the Vite index page when the root URL is requested
0 commit comments