Deployment Instellingen
Configureer deployment triggers, omgevingen en notificaties.
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 buildInstall Command
Command to install dependencies:
npm installOutput 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/webDeployment 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:
npm run migratenpm run notify-slackHealth 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?