Skip to content

Commit 6c94ccf

Browse files
reeceyangConvex, Inc.
authored andcommitted
Revert "dashboard: remove node version banner" (#42760)
GitOrigin-RevId: a2d6adfa8e586b320595634ba3dd9906871a8a3f
1 parent be41e1d commit 6c94ccf

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

npm-packages/dashboard-common/src/layouts/DeploymentDashboardLayout.tsx

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,10 @@ export function DeploymentDashboardLayout({
141141
<FunctionsProvider>
142142
<div className="flex h-full grow flex-col overflow-y-hidden">
143143
{(visiblePages === undefined || visiblePages.includes("settings")) && (
144-
<PauseBanner />
144+
<>
145+
<PauseBanner />
146+
<NodeVersionBanner />
147+
</>
145148
)}
146149
<div className="flex h-full flex-col overflow-y-auto sm:flex-row">
147150
{sidebarItems.length > 0 && (
@@ -216,6 +219,30 @@ function PauseBanner() {
216219
);
217220
}
218221

222+
function NodeVersionBanner() {
223+
const nodeVersion = useQuery(udfs.node.version);
224+
const usingNode18 = nodeVersion === "nodejs18.x";
225+
226+
if (usingNode18) {
227+
return (
228+
<div className="border-y bg-background-warning py-2 text-center text-xs text-content-warning">
229+
This deployment is using Node 18 and will be automatically upgraded to
230+
Node 20 on October 22, 2025. To manually configure the Node version,
231+
visit the{" "}
232+
<Link
233+
href="https://docs.convex.dev/production/project-configuration#configuring-the-nodejs-version"
234+
className="text-content-link hover:underline"
235+
>
236+
docs
237+
</Link>
238+
.
239+
</div>
240+
);
241+
}
242+
243+
return null;
244+
}
245+
219246
function EmbeddedConvexLogo({ collapsed }: { collapsed: boolean }) {
220247
const currentPage = useCurrentPage();
221248
const { deploymentName } = useIsCloudDeploymentInSelfHostedDashboard();

0 commit comments

Comments
 (0)