> ## 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.

# Build Executor

> Compile a FrontMCP project using frontmcp build

Compiles a FrontMCP project using TypeScript (`tsc`). Supports deployment adapters for platform-specific output.

## Usage

```bash theme={"theme":{"light":"snazzy-light","dark":"dark-plus"}}
nx build my-app
```

## Configuration

```json project.json theme={"theme":{"light":"snazzy-light","dark":"dark-plus"}}
{
  "targets": {
    "build": {
      "executor": "@frontmcp/nx:build",
      "outputs": ["{projectRoot}/dist"],
      "options": {
        "entry": "{projectRoot}/src/main.ts",
        "outputPath": "{projectRoot}/dist"
      }
    }
  }
}
```

## Options

| Option       | Type                                           | Description           |
| ------------ | ---------------------------------------------- | --------------------- |
| `entry`      | `string`                                       | Entry file path       |
| `outputPath` | `string`                                       | Output directory path |
| `adapter`    | `node` \| `vercel` \| `lambda` \| `cloudflare` | Deployment adapter    |

## Caching

This executor is **cacheable**. Nx will skip the build if inputs haven't changed.

```json nx.json theme={"theme":{"light":"snazzy-light","dark":"dark-plus"}}
{
  "targetDefaults": {
    "build": {
      "cache": true,
      "dependsOn": ["^build"],
      "inputs": ["production", "^production"]
    }
  }
}
```
