Skip to content

Commit 594eb20

Browse files
carderneTrigger.dev RepoOps
authored andcommitted
docs: default and "node" runtime track the current Node.js LTS
Docs now state that an unset `runtime`, or `runtime: "node"`, tracks the current Node.js LTS (today 24) rather than a pinned version. Explicit ids like `node-22`, `node-24` and `node-26` still pin to a specific version. Mono-RevId: a62eb9fc152bcc12f8ab04cacbb9a9bf542c3028
1 parent c44f72b commit 594eb20

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

‎docs/config/config-file.mdx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ export default defineConfig({
269269

270270
## Runtime
271271

272+
If you don't set a `runtime`, your tasks run on the current Node.js LTS. Setting `runtime: "node"` does the same thing — see the Node.js versions section below to pin a specific version instead.
273+
272274
We currently only officially support the `node` runtime, but you can try our experimental `bun` runtime by setting the `runtime` option in your config file:
273275

274276
```ts trigger.config.ts

‎docs/manual-setup.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export default defineConfig({
168168

169169
### Using the Bun runtime
170170

171-
By default, Trigger.dev will use the Node.js runtime. If you're using Bun, you can specify the runtime:
171+
By default, Trigger.dev runs your tasks on the current Node.js LTS. If you're using Bun, you can specify the runtime:
172172

173173
```typescript
174174
import { defineConfig } from "@trigger.dev/sdk";

‎docs/snippets/node-versions.mdx‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
Trigger.dev runs your tasks on specific Node.js versions:
1+
Trigger.dev runs your deployed tasks on one of these runtimes:
22

3-
- Node.js `21.7.3` (default)
4-
- Node.js `22.16.0` (`node-22`)
5-
- Node.js `24.18.0` (`node-24`)
6-
- Node.js `26.4.0` (`node-26`)
7-
- Bun `1.3.3` (`bun`)
3+
- Node.js `node` — the default, tracks the current Node.js LTS (today `24.18.0`)
4+
- Node.js `node-22` — `22.16.0`
5+
- Node.js `node-24` — `24.18.0`
6+
- Node.js `node-26` — `26.4.0`
7+
- Bun `bun` — `1.3.3`
88

9-
You can change the runtime by setting the `runtime` field in your `trigger.config.ts` file.
9+
If you don't set a `runtime`, or you set `runtime: "node"`, your tasks run on the current Node.js LTS. That version moves forward as new LTS releases land, so set an explicit version — for example `runtime: "node-24"` — if you need it to stay fixed.
1010

1111
```ts
1212
import { defineConfig } from "@trigger.dev/sdk";

0 commit comments

Comments
 (0)