chore: rename dev host localdev.blockninjacms.com -> blockninja.dev
This commit is contained in:
parent
b3d86b1489
commit
ddf2dd59ef
@ -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`.
|
||||
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user