Skip to content

Commit

Permalink
config set
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyuhang0 committed Dec 14, 2023
1 parent ca534f1 commit 2930237
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/cli/config/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ If not, the config in the active profile will be set`, prop.ProfileProperties())
return fmt.Errorf("no profile is configured, please use `config create` to create a profile")
}

if propertyName == prop.ApiUrl {
if propertyName == prop.ApiUrl || propertyName == prop.ServerlessEndpoint {
_, err := prop.ValidateApiUrl(value)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion internal/prop/property.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func GlobalProperties() []string {
}

func ProfileProperties() []string {
return []string{PublicKey, PrivateKey, ApiUrl, TelemetryEnabled}
return []string{PublicKey, PrivateKey, ApiUrl, ServerlessEndpoint, TelemetryEnabled}
}

func Properties() []string {
Expand Down

0 comments on commit 2930237

Please sign in to comment.