mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-03 11:37:09 +00:00
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.
This commit is contained in:
1 parent
a6f43e15b2
commit
4f381841dd
71 files changed
+92
-90
No files matched your search
@@ -0,0 +1,20 @@
|
||||
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
|
||||
}
|
||||
Reference in new issue
Block a user