docs: deprecate name arg (#5026)

This commit is contained in:
Eric Paulsen
2022-11-11 06:16:14 +00:00
committed by GitHub
parent 4b7c710755
commit 823b02ac9c
2 changed files with 24 additions and 22 deletions
+6 -6
View File
@@ -61,13 +61,13 @@ One way to port forward in the dashboard is to use the "Port forward" button to
Another way to port forward is to configure a `coder_app` resource in the workspace's template. This approach shows a visual application icon in the dashboard. See the following `coder_app` example for a Node React app and note the `subdomain` and `share` settings:
```sh
```hcl
# node app
resource "coder_app" "node-react-app" {
agent_id = coder_agent.dev.id
name = "node-react-app"
icon = "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/React-icon.svg/2300px-React-icon.svg.png"
url = "http://localhost:3000"
agent_id = coder_agent.dev.id
slug = "node-react-app"
icon = "https://upload.wikimedia.org/wikipedia/commons/a/a7/React-icon.svg"
url = "http://localhost:3000"
subdomain = true
share = "authenticated"
@@ -75,7 +75,7 @@ resource "coder_app" "node-react-app" {
url = "http://localhost:3000/healthz"
interval = 10
threshold = 30
}
}
}
```