mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 13:18:53 +00:00
client/web: add barebones vite dev setup
Currently just serving a "Hello world" page when running the web cli in --dev mode. Updates tailscale/corp#13775 Co-authored-by: Will Norris <will@tailscale.com> Signed-off-by: Sonia Appasamy <sonia@tailscale.com>
This commit is contained in:

committed by
Sonia Appasamy

parent
215480a022
commit
16bc9350e3
@@ -35,7 +35,8 @@ func main() {
|
||||
}
|
||||
|
||||
// Serve the Tailscale web client.
|
||||
ws := web.NewServer(*devMode, lc)
|
||||
ws, cleanup := web.NewServer(*devMode, lc)
|
||||
defer cleanup()
|
||||
if err := http.Serve(ln, ws); err != nil {
|
||||
if err != http.ErrServerClosed {
|
||||
log.Fatal(err)
|
||||
|
Reference in New Issue
Block a user