From 3cebce10e7d26900cc956b242bedec74591d98fd Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 20 Feb 2026 21:53:19 +0100 Subject: [PATCH] fix: rename env variable name --- modules/sync/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/sync/index.ts b/modules/sync/index.ts index a22a1ec8..32dd3238 100644 --- a/modules/sync/index.ts +++ b/modules/sync/index.ts @@ -1,3 +1,4 @@ +import process from 'node:process' import { createClient } from '@sanity/client' import { defineNuxtModule, useNuxt } from 'nuxt/kit' @@ -22,10 +23,10 @@ export default defineNuxtModule({ if (nuxt.options.test || nuxt.options._prepare) return const dryRun = process.argv.includes('--dry-run') - const isProductionDeploy = process.env.VERCEL_ENV === 'production' + const isProductionDeploy = process.env.NUXT_ENV_VERCEL_ENV === 'production' if (!dryRun && !isProductionDeploy) { - console.info(`[sync] Skipped (VERCEL_ENV=${process.env.VERCEL_ENV || 'unset'})`) + console.info(`[sync] Skipped (VERCEL_ENV=${process.env.NUXT_ENV_VERCEL_ENV || 'unset'})`) return } -- knotmirror 0.0.1