diff --git a/.github/workflows/preview-pr.yml b/.github/workflows/preview-pr.yml index 8bb402cc..89260227 100644 --- a/.github/workflows/preview-pr.yml +++ b/.github/workflows/preview-pr.yml @@ -9,7 +9,7 @@ concurrency: cancel-in-progress: true env: - NODE_VERSION: '24.12.0' + NODE_VERSION: '24.22.3' jobs: # ✅ Runs for all PRs (including forks) diff --git a/.github/workflows/vercel-prod-on-release.yml b/.github/workflows/vercel-prod-on-release.yml index abd2440d..8fbeca6e 100644 --- a/.github/workflows/vercel-prod-on-release.yml +++ b/.github/workflows/vercel-prod-on-release.yml @@ -5,7 +5,7 @@ on: types: [published] env: - NODE_VERSION: '24.12.0' + NODE_VERSION: '24.22.3' jobs: deploy: diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..229b3ce8 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +24.22.3 diff --git a/src/instrumentation.ts b/src/instrumentation.ts index d33dca0c..f9dc7e96 100644 --- a/src/instrumentation.ts +++ b/src/instrumentation.ts @@ -10,6 +10,9 @@ export async function register(): Promise { if (process.env.NEXT_RUNTIME === 'nodejs') { + // Log the runtime Node version once per instance start. Vercel picks the + // patch version itself, so this is how we confirm it in production logs. + console.info(`Node.js runtime ${process.version}`); // Initialize Sentry for the Node.js runtime await import('../sentry.server.config'); }