Skip to content

Commit 7645706

Browse files
jordanhunt22Convex, Inc.
authored andcommitted
[Node Migration] Add banner for upgrade/configuration (#40569)
For projects that are on node 18, we display the upgrade date and link to the docs where they can manually specify their node version. Must be merged after get-convex/convex#40555 is pushed to funrun. <img width="1768" height="996" alt="Screenshot 2025-09-02 at 4 33 38 PM" src="https://github.com/user-attachments/assets/0132ad13-e03a-4b54-90db-b44caf29f27f" /> GitOrigin-RevId: 17f0bd88589a43c8098b89406f0d6a9099976e1c
1 parent cae94ab commit 7645706

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ export function DeploymentDashboardLayout({
125125
<FunctionsProvider>
126126
<div className="flex h-full grow flex-col overflow-y-hidden">
127127
<PauseBanner />
128+
<NodeVersionBanner />
128129
<div className="flex h-full flex-col sm:flex-row">
129130
<Sidebar
130131
collapsed={!!collapsed}
@@ -196,6 +197,30 @@ function PauseBanner() {
196197
);
197198
}
198199

200+
function NodeVersionBanner() {
201+
const nodeVersion = useQuery(udfs.node.version);
202+
const usingNode18 = nodeVersion === "nodejs18.x";
203+
204+
if (usingNode18) {
205+
return (
206+
<div className="border-y bg-background-warning py-2 text-center text-content-warning">
207+
This deployment is using Node 18 and will be automatically upgraded to
208+
Node 20 on October 22, 2025. To manually configure the Node version,
209+
visit the{" "}
210+
<Link
211+
href="https://docs.convex.dev/production/project-configuration#configuring-the-nodejs-version"
212+
className="text-content-link hover:underline"
213+
>
214+
docs
215+
</Link>
216+
.
217+
</div>
218+
);
219+
}
220+
221+
return null;
222+
}
223+
199224
function EmbeddedConvexLogo({ collapsed }: { collapsed: boolean }) {
200225
const currentPage = useCurrentPage();
201226
const { deploymentName } = useIsCloudDeploymentInSelfHostedDashboard();

0 commit comments

Comments
 (0)