> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentfront.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy Executor

> Deploy to a target platform (node/vercel/lambda/cloudflare)

Deploys a built server to the specified target platform.

## Usage

```bash theme={"theme":{"light":"snazzy-light","dark":"dark-plus"}}
nx deploy production
```

## Configuration

```json project.json theme={"theme":{"light":"snazzy-light","dark":"dark-plus"}}
{
  "targets": {
    "deploy": {
      "executor": "@frontmcp/nx:deploy",
      "dependsOn": ["build"],
      "options": {
        "target": "vercel"
      }
    }
  }
}
```

## Options

| Option | Type | Description |
| - | - | - |
| `target` | `node` \| `vercel` \| `lambda` \| `cloudflare` | **Required.** Deployment target platform |

## Platform Details

| Target | What Happens |
| - | - |
| `node` | Builds the Docker image and runs `docker compose up --build -d` |
| `vercel` | Runs `npx vercel --prod` using `vercel.json` config |
| `lambda` | Runs `sam build && sam deploy` using `template.yaml` SAM template |
| `cloudflare` | Runs `npx wrangler deploy` using `wrangler.toml` config |

## Workflow

```bash theme={"theme":{"light":"snazzy-light","dark":"dark-plus"}}
# Build first, then deploy
nx build production
nx deploy production

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.