mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
docs: deprecate name arg (#5026)
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user