# @nx-extend/vercel @nx-extend/vercel NPM package **Nx plugin to deploy your app to [Vercel](https://vercel.com)**. ## Features - Build Vercel projects from Nx workspace - Deploy to Vercel with full configuration - Support for project and organization IDs - Debug mode for troubleshooting ## Setup ### Install ```sh npm install -D @nx-extend/vercel ``` ## Usage ### Build Build your application for Vercel: ```sh nx build ``` #### Available Options | Name | Type | Default | Description | |-------------------|-----------|---------|---------------------------| | **`projectId`** | `string` | - | Project ID of Vercel | | **`orgId`** | `string` | - | Organisation ID of Vercel | | **`debug`** | `boolean` | `false` | Run Vercel in debug mode | ### Deploy Deploy your application to Vercel: ```sh nx deploy ``` #### Available Options | Name | Type | Default | Description | |---------------|-----------|---------|--------------------------| | **`debug`** | `boolean` | `false` | Run Vercel in debug mode | ## How to Create a Vercel Project Through the CLI To create a new Vercel project, run the following commands: ```sh # Make sure you are in the right org npx vercel teams list # If needed, switch to correct team npx vercel teams switch # Create the project npx vercel project add # Go to the Vercel dashboard, > settings > Project ID ``` ## Examples ### Build with Project Configuration ```json { "build": { "executor": "@nx-extend/vercel:build", "options": { "projectId": "prj_abc123xyz", "orgId": "team_abc123xyz" } } } ``` ### Deploy with Debug Mode ```json { "deploy": { "executor": "@nx-extend/vercel:deploy", "options": { "debug": true } } } ```