Skip to content

feat(laravel): declare a vite server health probe#22

Merged
prabowosd merged 1 commit into
lerd-env:mainfrom
prabowosd:feat/vite-health-probe
Jul 11, 2026
Merged

feat(laravel): declare a vite server health probe#22
prabowosd merged 1 commit into
lerd-env:mainfrom
prabowosd:feat/vite-health-probe

Conversation

@prabowosd

Copy link
Copy Markdown
Member

Vite writes public/hot on boot, holding its dev-server URL. Declaring it as the vite worker's health.url_file lets lerd probe reachability, so a vite dev server that dies under npm while its node process lingers is reported as unreachable and healed rather than shown as running with nothing listening.

Added to laravel 11, 12, and 13 (the versions that ship the vite worker). Pairs with the lerd worker-health support in lerd-env/lerd#839.

Closes #21

Vite writes public/hot on boot, holding its dev-server URL. Declaring it as
the vite worker's health url_file lets lerd probe reachability, so a vite dev
server that dies under npm while its node process lingers is reported as
unreachable and healed rather than shown as running with nothing listening.

Pairs with lerd worker-health support (lerd-env/lerd#839).
@prabowosd prabowosd requested a review from a team as a code owner July 10, 2026 10:02
@prabowosd prabowosd merged commit 6ab4687 into lerd-env:main Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vite worker has no health probe, so a dead dev server reports as running

2 participants