Skip to content

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

Description

@prabowosd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions