> ## 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 Docker image, ready for `docker compose up`   |
| `vercel`     | Runs `vercel deploy` using `vercel.json` config      |
| `lambda`     | Runs `sam deploy` using `template.yaml` SAM template |
| `cloudflare` | Runs `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
```
