From f17ea51c0149a2e2fcbd0ca920e8251a59dff409 Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Mon, 6 May 2024 11:56:41 +0100 Subject: [PATCH] Update air config for browser reloading --- .air.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.air.toml b/.air.toml index 51ee068..ba34b87 100644 --- a/.air.toml +++ b/.air.toml @@ -3,7 +3,7 @@ testdata_dir = "testdata" tmp_dir = "tmp" [build] - args_bin = ["run", "-host=127.0.0.1:8080"] + args_bin = ["run", "-host=127.0.0.1:3000"] bin = "./tmp/main" cmd = "go build -o ./tmp/main ." delay = 1000 @@ -44,3 +44,8 @@ tmp_dir = "tmp" [screen] clear_on_rebuild = false keep_scroll = true + +[proxy] + enabled = true + proxy_port = 8080 + app_port = 3000