mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
chore: add site
flag to buildinfo
(#14868)
This commit is contained in:
@ -492,7 +492,12 @@ func (r *RootCmd) Server(newAPI func(context.Context, *coderd.Options) (*coderd.
|
||||
BorderForeground(lipgloss.Color("12")).
|
||||
Render(fmt.Sprintf("View the Web UI:\n%s",
|
||||
pretty.Sprint(cliui.DefaultStyles.Hyperlink, accessURL))))
|
||||
_ = openURL(inv, accessURL)
|
||||
if buildinfo.HasSite() {
|
||||
err = openURL(inv, accessURL)
|
||||
if err == nil {
|
||||
cliui.Infof(inv.Stdout, "Opening local browser... You can disable this by passing --no-open.\n")
|
||||
}
|
||||
}
|
||||
|
||||
// Used for zero-trust instance identity with Google Cloud.
|
||||
googleTokenValidator, err := idtoken.NewValidator(ctx, option.WithoutAuthentication())
|
||||
|
Reference in New Issue
Block a user