The Laravel vite worker declares no way to tell whether its dev server is actually serving. Vite keeps its node process alive under npm even after its HTTP server dies, so lerd sees the unit as active and reports the worker as running while nothing is listening on the dev-server port.
lerd worker-health can now probe reachability when a worker declares a health block naming a file the server writes on boot (see lerd-env/lerd#839). Vite writes public/hot on boot, holding its dev-server URL, so the vite worker should declare:
health:
url_file: public/hot
for laravel 11, 12, and 13 (the versions that ship the vite worker), so a dead dev server is reported as unreachable and healed instead of shown as running.
The Laravel
viteworker declares no way to tell whether its dev server is actually serving. Vite keeps its node process alive undernpmeven after its HTTP server dies, so lerd sees the unit as active and reports the worker as running while nothing is listening on the dev-server port.lerd worker-health can now probe reachability when a worker declares a
healthblock naming a file the server writes on boot (see lerd-env/lerd#839). Vite writespublic/hoton boot, holding its dev-server URL, so theviteworker should declare:for laravel 11, 12, and 13 (the versions that ship the vite worker), so a dead dev server is reported as unreachable and healed instead of shown as running.