Skip to content

Commit 3c38987

Browse files
committed
docs: redirect duplicate CLI command pages to canonical URLs
1 parent ca43ab8 commit 3c38987

11 files changed

Lines changed: 21 additions & 34 deletions

docs/cli-deploy.mdx

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/cli-dev.mdx

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/cli-development-commands.mdx

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/deploy-environment-variables.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ To sync environment variables from your Vercel projects to Trigger.dev, you can
230230

231231
#### Deploy
232232

233-
When you run the [CLI deploy command](/cli-deploy) directly or using [GitHub Actions](/github-actions) it will sync the environment variables from [Infisical](https://infisical.com) to Trigger.dev. This means they'll appear on the Environment Variables page so you can confirm that it's worked.
233+
When you run the [CLI deploy command](/cli-deploy-commands) directly or using [GitHub Actions](/github-actions) it will sync the environment variables from [Infisical](https://infisical.com) to Trigger.dev. This means they'll appear on the Environment Variables page so you can confirm that it's worked.
234234

235235
This means that you need to redeploy your Trigger.dev tasks if you change the environment variables in [Infisical](https://infisical.com).
236236

docs/deployment/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: "Learn how to deploy your tasks to Trigger.dev."
66

77
import CorepackError from "/snippets/corepack-error.mdx";
88

9-
Before you can run production workloads on Trigger.dev, you need to deploy your tasks. The only way to do this at the moment is through the [deploy CLI command](/cli-deploy):
9+
Before you can run production workloads on Trigger.dev, you need to deploy your tasks. The only way to do this at the moment is through the [deploy CLI command](/cli-deploy-commands):
1010

1111
<CodeGroup>
1212

docs/docs.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@
195195
{
196196
"group": "Development",
197197
"pages": [
198-
"cli-dev"
198+
"cli-dev-commands"
199199
]
200200
},
201201
{
@@ -746,6 +746,18 @@
746746
]
747747
},
748748
"redirects": [
749+
{
750+
"source": "/cli-dev",
751+
"destination": "/cli-dev-commands"
752+
},
753+
{
754+
"source": "/cli-deploy",
755+
"destination": "/cli-deploy-commands"
756+
},
757+
{
758+
"source": "/cli-development-commands",
759+
"destination": "/cli-dev-commands"
760+
},
749761
{
750762
"source": "/v3/feature-matrix",
751763
"destination": "https://feedback.trigger.dev/roadmap"

docs/open-source-self-hosting.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ TRIGGER_DOMAIN=1234-42-42-42-42.ngrok-free.app
156156

157157
### Registry setup
158158

159-
If you want to deploy v3 projects, you will need access to a Docker registry. The [CLI deploy](/cli-deploy) command will push the images, and then the worker machine can pull them when needed. We will use Docker Hub as an example.
159+
If you want to deploy v3 projects, you will need access to a Docker registry. The [CLI deploy](/cli-deploy-commands) command will push the images, and then the worker machine can pull them when needed. We will use Docker Hub as an example.
160160

161161
1. Sign up for a free account at [Docker Hub](https://hub.docker.com/)
162162

docs/snippets/deplopying-your-task.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Deploying your task to Trigger.dev
22

3-
For this guide, we'll manually deploy your task by running the [CLI deploy command](/cli-deploy) below. Other ways to deploy are listed in the next section.
3+
For this guide, we'll manually deploy your task by running the [CLI deploy command](/cli-deploy-commands) below. Other ways to deploy are listed in the next section.
44

55
<CodeGroup>
66

docs/snippets/useful-next-steps.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<Card title="Writing tasks" icon="pen-nib" href="/writing-tasks-introduction">
88
Learn how to write your own tasks
99
</Card>
10-
<Card title="Deploy using the CLI" icon="terminal" href="/cli-deploy">
10+
<Card title="Deploy using the CLI" icon="terminal" href="/cli-deploy-commands">
1111
Learn how to deploy your task manually using the CLI
1212
</Card>
1313
<Card title="Deploy using GitHub actions" icon="github" href="/github-actions">

docs/tasks/scheduled.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ There are two ways of doing this:
9595

9696
### Declarative schedules
9797

98-
These sync when you run the [dev](/cli-dev) or [deploy](/cli-deploy) commands.
98+
These sync when you run the [dev](/cli-dev-commands) or [deploy](/cli-deploy-commands) commands.
9999

100100
To create them you add the `cron` property to your `schedules.task()`. This property is optional and is only used if you want to add a declarative schedule to your task:
101101

@@ -127,7 +127,7 @@ export const secondScheduledTask = schedules.task({
127127
});
128128
```
129129

130-
When you run the [dev](/cli-dev) or [deploy](/cli-deploy) commands, declarative schedules will be synced. If you add, delete or edit the `cron` property it will be updated when you run these commands. You can view your schedules on the Schedules page in the dashboard.
130+
When you run the [dev](/cli-dev-commands) or [deploy](/cli-deploy-commands) commands, declarative schedules will be synced. If you add, delete or edit the `cron` property it will be updated when you run these commands. You can view your schedules on the Schedules page in the dashboard.
131131

132132
### Imperative schedules
133133

0 commit comments

Comments
 (0)