Skip to content

Commit

Permalink
check that the domain is set
Browse files Browse the repository at this point in the history
  • Loading branch information
pomdtr committed Jan 6, 2025
1 parent b2246f9 commit 1d404c8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cmd/doctor.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ func NewCmdDoctor() *cobra.Command {
fmt.Fprintf(os.Stderr, "✅ Deno version is compatible (%s)\n", version)
fmt.Fprintln(os.Stderr)

fmt.Fprintln(os.Stderr, "🔍 Checking domain...")
if k.String("domain") == "" {
fmt.Fprintln(os.Stderr, "❌ Domain not set")
fmt.Fprintf(os.Stderr, "💡 Set it using the $SMALLWEB_DOMAIN env var or the `domain` field in your smallweb config")
return nil
}
fmt.Fprintln(os.Stderr, "✅ Domain is set")
fmt.Fprintln(os.Stderr)

fmt.Fprintln(os.Stderr, "🎉 smallweb is healthy")
return nil
},
Expand Down

0 comments on commit 1d404c8

Please sign in to comment.