diff --git a/src/admin/insights/AdminAppInsightsClient.tsx b/src/admin/insights/AdminAppInsightsClient.tsx index c50d6afc..ad748cfb 100644 --- a/src/admin/insights/AdminAppInsightsClient.tsx +++ b/src/admin/insights/AdminAppInsightsClient.tsx @@ -137,7 +137,7 @@ export default function AdminAppInsightsClient({ codeMeta?: Awaited> nextVersion: string reactVersion: string - nodeVersion: string + nodeVersion?: string insights: ReturnType usedDeprecatedEnvVars: typeof USED_DEPRECATED_ENV_VARS photoStats: PhotoStats @@ -306,12 +306,12 @@ export default function AdminAppInsightsClient({ } /> - } content={ Node.js {nodeVersion} } - /> + />} } diff --git a/src/app/config.ts b/src/app/config.ts index 8384a58c..a48860da 100644 --- a/src/app/config.ts +++ b/src/app/config.ts @@ -530,7 +530,7 @@ export const APP_CONFIGURATION = { // Misc nextVersion: dependencies.next, reactVersion: dependencies.react, - nodeVersion: process.version, + nodeVersion: (process.version || '').match(/[0-9.]+$/)?.[0], baseUrl: BASE_URL, baseUrlShare: BASE_URL_SHARE, commitSha: VERCEL_GIT_COMMIT_SHA_SHORT,