From 545a360068c3ce47043a24ba8dd2c013a06eb9a2 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Fri, 30 Jan 2026 20:58:32 -0600 Subject: [PATCH] Debug node version --- src/admin/insights/AdminAppInsights.tsx | 1 + src/admin/insights/AdminAppInsightsClient.tsx | 11 ++++- src/app/config.ts | 1 + src/components/icons/IconNext.tsx | 4 +- src/components/icons/IconNode.tsx | 40 +++++++++++++++++++ 5 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 src/components/icons/IconNode.tsx diff --git a/src/admin/insights/AdminAppInsights.tsx b/src/admin/insights/AdminAppInsights.tsx index c36d6017..fcbd5e7b 100644 --- a/src/admin/insights/AdminAppInsights.tsx +++ b/src/admin/insights/AdminAppInsights.tsx @@ -43,6 +43,7 @@ export default async function AdminAppInsights() { > nextVersion: string + nodeVersion: string insights: ReturnType usedDeprecatedEnvVars: typeof USED_DEPRECATED_ENV_VARS photoStats: PhotoStats @@ -281,7 +284,7 @@ export default function AdminAppInsightsClient({ } /> } + icon={} content={} /> + } + content={ + Node.js {nodeVersion} + } + /> } diff --git a/src/app/config.ts b/src/app/config.ts index e96d5341..274b956e 100644 --- a/src/app/config.ts +++ b/src/app/config.ts @@ -529,6 +529,7 @@ export const APP_CONFIGURATION = { isAdminSqlDebugEnabled: ADMIN_SQL_DEBUG_ENABLED, // Misc nextVersion: dependencies.next, + nodeVersion: process.version, baseUrl: BASE_URL, baseUrlShare: BASE_URL_SHARE, commitSha: VERCEL_GIT_COMMIT_SHA_SHORT, diff --git a/src/components/icons/IconNext.tsx b/src/components/icons/IconNext.tsx index 8df880a5..8449ae1c 100644 --- a/src/components/icons/IconNext.tsx +++ b/src/components/icons/IconNext.tsx @@ -3,8 +3,10 @@ import clsx from 'clsx/lite'; export default function IconNext({ + size = '1em', className, }: { + size?: string | number className?: string }) { return ( @@ -13,7 +15,7 @@ export default function IconNext({ 'border border-transparent dark:border-white/40 rounded-full', className, )}> - + diff --git a/src/components/icons/IconNode.tsx b/src/components/icons/IconNode.tsx new file mode 100644 index 00000000..86a0721d --- /dev/null +++ b/src/components/icons/IconNode.tsx @@ -0,0 +1,40 @@ +/* eslint-disable max-len */ + +export default function IconNode({ + size = '1em', + className, +}: { + size?: string | number + className?: string +}) { + return ( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ); +} \ No newline at end of file