From 166e460c0cd717bfa167c7f0e60a03374d320bc9 Mon Sep 17 00:00:00 2001 From: eggplannt Date: Wed, 28 May 2025 21:17:01 -0600 Subject: [PATCH 1/3] added hot reload proxy for htmx --- cmd/template/framework/files/air.toml.tmpl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/template/framework/files/air.toml.tmpl b/cmd/template/framework/files/air.toml.tmpl index 271c01c22..f9786bb00 100644 --- a/cmd/template/framework/files/air.toml.tmpl +++ b/cmd/template/framework/files/air.toml.tmpl @@ -44,3 +44,10 @@ tmp_dir = "tmp" [screen] clear_on_rebuild = false keep_scroll = true +{{- if .AdvancedOptions.htmx}} + +[proxy] + proxy_port = 3000 + app_port = 8080 + enabled = true +{{- end}} From a1b098e88cc76655d51988c78d4545b36e58019e Mon Sep 17 00:00:00 2001 From: eggplannt Date: Wed, 28 May 2025 21:29:14 -0600 Subject: [PATCH 2/3] added proxy to docs --- docs/docs/creating-project/air.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/docs/creating-project/air.md b/docs/docs/creating-project/air.md index 7d0ea4f67..90a37e472 100644 --- a/docs/docs/creating-project/air.md +++ b/docs/docs/creating-project/air.md @@ -27,7 +27,8 @@ watching internal/database watching internal/server watching tests !exclude tmp -building... +building.. +Proxy server listening on http://localhost:3000 make[1]: Entering directory '/home/ujstor/code/blueprint-version-test/ws-test4' Building... Processing path: /home/ujstor/code/blueprint-version-test/ws-test4 From c57eda77daf4f52e93fb39f88c3f2d8619f316c3 Mon Sep 17 00:00:00 2001 From: eggplannt <90859620+eggplannt@users.noreply.github.com> Date: Mon, 2 Jun 2025 06:32:15 -0600 Subject: [PATCH 3/3] Update air.md --- docs/docs/creating-project/air.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/creating-project/air.md b/docs/docs/creating-project/air.md index 90a37e472..51051edfc 100644 --- a/docs/docs/creating-project/air.md +++ b/docs/docs/creating-project/air.md @@ -27,7 +27,7 @@ watching internal/database watching internal/server watching tests !exclude tmp -building.. +building... Proxy server listening on http://localhost:3000 make[1]: Entering directory '/home/ujstor/code/blueprint-version-test/ws-test4' Building...