Repository navigation
Commit 7ee436b
feat(webapp): give runs a TRIGGER_DASHBOARD_URL environment variable
Runs now get a `TRIGGER_DASHBOARD_URL` environment variable set to the
dashboard's address (`APP_ORIGIN`, without a trailing slash), in dev and
deployed environments. A `TRIGGER_DASHBOARD_URL` set on the project
overrides it. A task can link to its own run on any instance:
```ts
const runUrl = `${process.env.TRIGGER_DASHBOARD_URL}/runs/${ctx.run.id}`;
```
`/runs/<runId>` checks that the viewer belongs to the run's
organization, then redirects to the full run page.
Mono-RevId: 7541a5f02d5c69f77ab422974c9944eac97d722b1 parent ee54065 commit 7ee436b
2 files changed
Lines changed: 10 additions & 0 deletions
File tree
- .server-changes
- apps/webapp/app/v3/environmentVariables
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1030 | 1030 | | |
1031 | 1031 | | |
1032 | 1032 | | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
1033 | 1037 | | |
1034 | 1038 | | |
1035 | 1039 | | |
| |||
0 commit comments