main / .air.toml
559 B · TOML Raw
1root = "."
2tmp_dir = "tmp"
3
4[build]
5# Regenerate templ files, then build the server.
6cmd = "templ generate && go build -o ./tmp/main ./cmd/server"
7bin = "./tmp/main"
8include_ext = ["go", "templ", "html", "css", "js"]
9# Generated templ files are written by the build step itself — don't let them
10# trigger another rebuild (avoids an infinite loop).
11exclude_regex = ["_templ.go$"]
12exclude_dir = ["tmp", "data", "docs", ".git", ".claude"]
13delay = 200
14stop_on_error = true
15send_interrupt = true
16kill_delay = 2000
17
18[log]
19time = true
20
21[misc]
22clean_on_exit = true