Skip to main content
Deploys a built server to the specified target platform.

Usage

nx deploy production

Configuration

project.json
{
  "targets": {
    "deploy": {
      "executor": "@frontmcp/nx:deploy",
      "dependsOn": ["build"],
      "options": {
        "target": "vercel"
      }
    }
  }
}

Options

OptionTypeDescription
targetnode | vercel | lambda | cloudflareRequired. Deployment target platform

Platform Details

TargetWhat Happens
nodeBuilds Docker image, ready for docker compose up
vercelRuns vercel deploy using vercel.json config
lambdaRuns sam deploy using template.yaml SAM template
cloudflareRuns wrangler deploy using wrangler.toml config

Workflow

# Build first, then deploy
nx build production
nx deploy production

# Or use dependsOn to chain automatically
nx deploy production  # triggers build first if configured