From c84f31eb4b24e6fb7fe040ec238df39f8d53b2d4 Mon Sep 17 00:00:00 2001 From: Hendrik Brombeer Date: Tue, 28 Apr 2026 10:59:05 +0200 Subject: [PATCH] fix(config): default APIURL to platform.grnds.io (forge subdomain doesn't exist) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported live: \`grounds preview list\` failed with Get "https://forge.grnds.io/v1/preview-envs": dial tcp: lookup forge.grnds.io: no such host The default in DefaultAPIURL was wrong — there is no \`forge.grnds.io\` DNS record. The actual forge ingress is at \`platform.grnds.io\` (managed manually in Cloudflare per platform_dns_manual). Aligns with the grounds-push Gradle plugin's GROUNDS_API_URL fallback which already points to platform.grnds.io. Users who set GROUNDS_API_URL or \`apiUrl:\` in ~/.config/grounds/ config.yaml are unaffected; only those falling back to defaults were hitting NXDOMAIN. Co-Authored-By: Claude Opus 4.7 (1M context) --- internal/config/config_test.go | 2 +- internal/config/defaults.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/config/config_test.go b/internal/config/config_test.go index 9e361b2..1d5676e 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -12,7 +12,7 @@ func TestLoadDefaults(t *testing.T) { if err != nil { t.Fatalf("load: %v", err) } - if cfg.APIURL != "https://forge.grnds.io" { + if cfg.APIURL != "https://platform.grnds.io" { t.Errorf("APIURL = %q", cfg.APIURL) } if cfg.DefaultTarget != "dev" { diff --git a/internal/config/defaults.go b/internal/config/defaults.go index 7cdb534..1c40f43 100644 --- a/internal/config/defaults.go +++ b/internal/config/defaults.go @@ -1,7 +1,7 @@ package config const ( - DefaultAPIURL = "https://forge.grnds.io" + DefaultAPIURL = "https://platform.grnds.io" DefaultTarget = "dev" DefaultOutput = "table" DefaultColor = "auto"