Deployments

Deployment Instellingen

Configureer deployment triggers, omgevingen en notificaties.

3 min leestijd

Configure how deployments work for your project. From build commands to deployment triggers, these settings give you full control.

Build Settings

Build Command

The command to build your project. Defaults to:

npm run build

Install Command

Command to install dependencies:

npm install

Output Directory

Where build artifacts are located. Common values:

  • Next.js: .next
  • Vite/React: dist
  • Create React App: build

Node.js Version

Select the Node.js version for builds: 18.x, 20.x, or 22.x.

Environment Configuration

Environment Variables

Variables available during build and runtime. See the Environment Variables guide.

Root Directory

For monorepos, specify the subdirectory containing your project.

apps/web

Deployment Triggers

Manual Only

Deployments only happen when you click Deploy.

On Approval

Auto-deploy when all required approvals are received.

On Push

Auto-deploy when code is pushed to the main branch (GitHub integration).

Recommended

For most teams, "On Approval" provides the right balance of automation and control. You review changes before they go live.

Deployment Protection

Required Approvals

Number of approvals needed before deployment:

  • 0 — No approvals required
  • 1 — Single approver (default)
  • 2+ — Multiple approvers for critical projects

Approver Groups

Specify who can approve deployments:

  • Any team member
  • Product Owners only
  • Admins only
  • Specific users

Advanced Settings

Deployment Hooks

Run scripts before or after deployment:

Pre-deploy hook
npm run migrate
Post-deploy hook
npm run notify-slack

Health Checks

Configure health check endpoint and thresholds:

  • Endpoint — /api/health (default)
  • Timeout — 30 seconds
  • Retries — 3 attempts

Auto-Rollback

Automatically rollback if health checks fail after deployment.

⚠️Database Migrations

If you run database migrations in a pre-deploy hook, note that rollbacks won't undo migration changes. Plan your migrations carefully.

Notifications

Configure deployment notifications:

  • Deployment started
  • Deployment succeeded
  • Deployment failed
  • Rollback completed

Notifications can be sent via email, Slack, or webhook.

Was dit artikel nuttig?