Skip to content

Incorrect documentation in codersdk for (*client).AppHost? #11324

Closed
@mafredri

Description

@mafredri

AppHost returns the site-wide application wildcard hostname without the leading "*."

As documented here:

coder/codersdk/deployment.go

Lines 2216 to 2219 in 8271cb0

// AppHost returns the site-wide application wildcard hostname without the
// leading "*.", e.g. "apps.coder.com". Apps are accessible at:
// "<app-name>--<agent-name>--<workspace-name>--<username>.<app-host>", e.g.
// "my-app--agent--workspace--username.apps.coder.com".

However, the actual response includes * and the comment about . also seems to be an incorrect assumption?

Actual response on dev.coder.com:

{"host":"*--apps.dev.coder.com"}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions