[READ-ONLY] Mirror of https://github.com/danielroe/roe.dev. This is the code and content for my personal website, built in Nuxt. roe.dev
0

Configure Feed

Select the types of activity you want to include in your feed.

fix: rename env variable name

+3 -2
+3 -2
modules/sync/index.ts
··· 1 + import process from 'node:process' 1 2 import { createClient } from '@sanity/client' 2 3 import { defineNuxtModule, useNuxt } from 'nuxt/kit' 3 4 ··· 22 23 if (nuxt.options.test || nuxt.options._prepare) return 23 24 24 25 const dryRun = process.argv.includes('--dry-run') 25 - const isProductionDeploy = process.env.VERCEL_ENV === 'production' 26 + const isProductionDeploy = process.env.NUXT_ENV_VERCEL_ENV === 'production' 26 27 27 28 if (!dryRun && !isProductionDeploy) { 28 - console.info(`[sync] Skipped (VERCEL_ENV=${process.env.VERCEL_ENV || 'unset'})`) 29 + console.info(`[sync] Skipped (VERCEL_ENV=${process.env.NUXT_ENV_VERCEL_ENV || 'unset'})`) 29 30 return 30 31 } 31 32