Trigger.dev runs your tasks on specific Node.js versions depending on the version you're using:
- v3: Uses Node.js
21.7.3 - v4: Uses Node.js
21.7.3by default, or Node.js22.12.0if you setruntime: "node-22"in yourtrigger.config.ts
In v4, you can specify runtime: "node-22" to use Node.js 22 like this:
import { defineConfig } from "@trigger.dev/sdk/v3";
export default defineConfig({
project: "<project ref>",
// Your other config settings...
runtime: "node-22", // Uses Node.js 22.12.0
});