From dc1d137f1ed9292c9ae3a00e83d913cd5df74c20 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 20 Feb 2026 21:45:57 +0100 Subject: [PATCH] chore: add logging --- modules/sync/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/sync/index.ts b/modules/sync/index.ts index 9caf98f4..a22a1ec8 100644 --- a/modules/sync/index.ts +++ b/modules/sync/index.ts @@ -24,7 +24,10 @@ export default defineNuxtModule({ const dryRun = process.argv.includes('--dry-run') const isProductionDeploy = process.env.VERCEL_ENV === 'production' - if (!dryRun && !isProductionDeploy) return + if (!dryRun && !isProductionDeploy) { + console.info(`[sync] Skipped (VERCEL_ENV=${process.env.VERCEL_ENV || 'unset'})`) + return + } nuxt.hook('markdown:sync-articles', async articles => { const talks = await fetchTalks() @@ -32,6 +35,7 @@ export default defineNuxtModule({ console.info(`[sync] ${dryRun ? 'Dry run' : 'Syncing'}: ${items.length} items (${articles.length} articles, ${talks.length} talks)`) await syncAll(items, { dryRun }) + console.info('[sync] Complete') }) }, }) -- knotmirror 0.0.1