Remove leading v from Node.js debug version

This commit is contained in:
Sam Becker 2026-01-31 15:15:45 -06:00
parent 58cbe73909
commit 0b47d9d618
2 changed files with 4 additions and 4 deletions

View File

@ -137,7 +137,7 @@ export default function AdminAppInsightsClient({
codeMeta?: Awaited<ReturnType<typeof getGitHubMetaForCurrentApp>>
nextVersion: string
reactVersion: string
nodeVersion: string
nodeVersion?: string
insights: ReturnType<typeof getAllInsights>
usedDeprecatedEnvVars: typeof USED_DEPRECATED_ENV_VARS
photoStats: PhotoStats
@ -306,12 +306,12 @@ export default function AdminAppInsightsClient({
</Link>
</>}
/>
<ScoreCardRow
{nodeVersion && <ScoreCardRow
icon={<IconNode className="translate-y-px" />}
content={<span>
Node.js {nodeVersion}
</span>}
/>
/>}
</ScoreCard>
</>}
<ScoreCard title="Template recommendations">

View File

@ -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,