Skip to content
vxvx
GitHubBlueskydev.toRSS

A task sees only the env it names

Undeclared variables never reach a task, and secrets are masked in its output.

A task with an isolated env and a masked secret.

A build that reads a stray variable from your shell works on your machine and nowhere else. vx starts each task with a clean environment plus what you name.

passThrough lets a variable in, define sets one, and secret masks a value wherever it would be printed.

// config

// packages/api/vx.config.ts
import { defineProject } from '@vzn/vx/config'

export default defineProject({
  tasks: {
    deploy: {
      exec: {
        command: './deploy.sh',
        env: {
          passThrough: ['DEPLOY_TOKEN'],
          define: { NODE_ENV: 'production' },
          secret: ['DEPLOY_TOKEN'],
        },
      },
    },
  },
})
Turborepo, Nx and other product names are trademarks of their owners. vx is not affiliated with or endorsed by them.