diff --git a/CLAUDE.md b/CLAUDE.md index b4b2056..0e3b8d4 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -53,7 +53,7 @@ artifact and never compile. Global `--host` flag: orchestrator base URL. **Default is `https://my.blockninjacms.com` — PRODUCTION.** For local dev always pass -`--host https://my.localdev.blockninjacms.com` (or set it as the active host via +`--host https://my.blockninja.dev` (or set it as the active host via `ninja login`). Never publish dev/test plugins to the prod registry by omitting `--host`. diff --git a/cmd/ninja/cmd/theme.go b/cmd/ninja/cmd/theme.go index 874562c..69ad85c 100644 --- a/cmd/ninja/cmd/theme.go +++ b/cmd/ninja/cmd/theme.go @@ -55,7 +55,7 @@ the rest of the CLI.`, themeName = mod.Plugin.Name } if gallery == "" { - return fmt.Errorf("--gallery is required (the gallery CMS site base, e.g. https://showcase.localdev.blockninjacms.com)") + return fmt.Errorf("--gallery is required (the gallery CMS site base, e.g. https://showcase.blockninja.dev)") } ctx := context.Background() diff --git a/internal/shot/shot_test.go b/internal/shot/shot_test.go index eb6ea05..b3c288e 100644 --- a/internal/shot/shot_test.go +++ b/internal/shot/shot_test.go @@ -3,16 +3,16 @@ package shot import "testing" func TestPreviewURLComposesQuery(t *testing.T) { - got := PreviewURL("https://showcase.localdev.blockninjacms.com", "/", "gotham") - want := "https://showcase.localdev.blockninjacms.com/?preview_template=gotham" + got := PreviewURL("https://showcase.blockninja.dev", "/", "gotham") + want := "https://showcase.blockninja.dev/?preview_template=gotham" if got != want { t.Fatalf("PreviewURL = %q, want %q", got, want) } } func TestPreviewURLTrimsTrailingSlashHost(t *testing.T) { - got := PreviewURL("https://showcase.localdev.blockninjacms.com/", "/", "noir") - want := "https://showcase.localdev.blockninjacms.com/?preview_template=noir" + got := PreviewURL("https://showcase.blockninja.dev/", "/", "noir") + want := "https://showcase.blockninja.dev/?preview_template=noir" if got != want { t.Fatalf("PreviewURL = %q, want %q", got, want) }