You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I needed to use the ViteRestart to reboot my server everytime that a local lib, that I have linked with my project, rebuilds.
As I added the delay param, I realized that it actually has no effect on the restart paths, instead working only with the reload ones.
That way, while my lib rebuilds, the project restarts with the old files and the new files does not load with the changes I just made.
Suggested solution
We can just wrap the existing schedule function around the server.restart() at line 91. That way, the server will restart based on the delay param, as the reload function already does.
Clear and concise description of the problem
I needed to use the ViteRestart to reboot my server everytime that a local lib, that I have linked with my project, rebuilds.
As I added the
delay
param, I realized that it actually has no effect on therestart
paths, instead working only with thereload
ones.That way, while my lib rebuilds, the project restarts with the old files and the new files does not load with the changes I just made.
Suggested solution
We can just wrap the existing
schedule
function around theserver.restart()
at line 91. That way, the server will restart based on thedelay
param, as the reload function already does.Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: