Files
sanderling/internal/replay/dev.go
T
pj b44077afde replay ui fix (#56)
* refactor: rename inspect to replay across the codebase

Renames inspect-ui/ to replay-ui/, internal/inspect/ to internal/replay/,
the CLI subcommand from `sanderling inspect` to `sanderling replay`, and
updates all references in docs, Makefile, README, and Go comments.

* feat(replay-ui): show spec filename with full path on hover

RunList and RunDetail now render the basename of spec_path (e.g.
login.spec.ts) with the full path available as a title tooltip.
2026-06-03 16:17:26 +05:30

21 lines
452 B
Go

package replay
import (
"net/http"
"net/http/httputil"
"net/url"
)
// DevTarget is the hardcoded Vite dev server address. The --dev flag
// enables a reverse proxy to this address for non-API requests.
const DevTarget = "http://127.0.0.1:5173"
func newDevProxy(target string) (http.Handler, error) {
parsed, err := url.Parse(target)
if err != nil {
return nil, err
}
proxy := httputil.NewSingleHostReverseProxy(parsed)
return proxy, nil
}