# @lovable.dev/vite-plugin-dev-server-bridge

Vite dev-server plugin for connecting Lovable's sandbox control plane to a live browser preview.

## What It Does

- Exposes a dev-only restart endpoint that tells connected preview tabs when the server is about to restart.
- Exposes a preview execution endpoint for short diagnostics in connected viewer tabs.
- Delivers both messages through Vite's HMR WebSocket, so the browser preview can react without polling.

## Scope

Runs only during `vite serve`; production builds are unchanged.
