Skip to content

Commit c8d3cf1

Browse files
carderneTrigger.dev RepoOps
authored andcommitted
fix(emails): clarify automatic default "node" Node 24 upgrades
Mono-RevId: e6399386fe348bde57423668d5427dc7ed9ca935
1 parent 319e3b9 commit c8d3cf1

2 files changed

Lines changed: 8 additions & 18 deletions

File tree

‎internal-packages/emails/emails/node-runtime-deprecation.tsx‎

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ export default function Email(props: NodeRuntimeDeprecationEmailProps) {
4545
return (
4646
<Html>
4747
<Head />
48-
<Preview>{`${project} deployed using deprecated Node.js 21`}</Preview>
48+
<Preview>{`${project} deployed using deprecated Node 21`}</Preview>
4949
<Body style={main}>
5050
<Container style={container}>
5151
<Text style={h1}>This deployment uses deprecated Node 21</Text>
5252
<Text style={paragraphLight}>
53-
This deployment was built using Node {runtimeVersion}. From 5 October, new deployments
54-
on Node 21 will start to fail.
53+
This deployment was built using Node {runtimeVersion}. From 5 October, deployments that
54+
would otherwise use Node 21 will start using Node 24 instead.
5555
</Text>
5656
<Text style={paragraphLight}>
5757
Organization: <strong>{organization}</strong>
@@ -66,21 +66,11 @@ export default function Email(props: NodeRuntimeDeprecationEmailProps) {
6666
View deployment
6767
</Link>
6868

69-
<Text style={sectionHeading}>Check all affected projects</Text>
69+
<Text style={sectionHeading}>Upgrade now</Text>
7070
<Text style={paragraphLight}>
71-
Go to your{" "}
72-
<Link href={projectsLink} target="_blank" style={anchor}>
73-
Projects settings
74-
</Link>{" "}
75-
to see which projects need updating.
76-
</Text>
77-
<Text style={paragraphLight}>You can also use the latest version of the CLI:</Text>
78-
<Text style={code}>npx trigger.dev@latest projects list --needs-update</Text>
79-
80-
<Text style={sectionHeading}>How to upgrade</Text>
81-
<Text style={paragraphLight}>
82-
Edit <strong>trigger.config.ts</strong> in each project and set the{" "}
83-
<strong>runtime</strong> field:
71+
If you want to upgrade and test the change before then, edit{" "}
72+
<strong>trigger.config.ts</strong>, set the <strong>runtime</strong> field, and deploy
73+
again:
8474
</Text>
8575
<Text style={code}>{'runtime: "node-24"'}</Text>
8676
<Text style={{ ...paragraphLight, marginBottom: "50px" }}>

‎internal-packages/emails/src/index.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export class EmailClient {
176176
}
177177
case "node-runtime-deprecation": {
178178
return {
179-
subject: `[${data.organization}] ${data.project} deployed using deprecated Node.js 21`,
179+
subject: `[${data.organization}] ${data.project} deployed using deprecated Node 21`,
180180
component: <NodeRuntimeDeprecationEmail {...data} />,
181181
};
182182
}

0 commit comments

Comments
 (0)