Skip to content

Commit

Permalink
docs: explain open-browser flag (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
quinn authored Oct 31, 2024
1 parent d9eefff commit 079e286
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/docs/09-commands-and-tools/03-live-reload.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ Altogether, to setup live reload on an app that listens on port 8080, run the fo
templ generate --watch --proxy="http://localhost:8080" --cmd="go run ."
```

This will start the proxy server on port `7331` and open it in your default browser. If you'd like to prevent it from opening in your browser add the flag `--open-browser=false`.

```go title="main.go"
package main

Expand Down

0 comments on commit 079e286

Please sign in to comment.