Deployment

Learn how to deploy your NextCoder applications

Overview

NextCoder provides seamless deployment capabilities for your applications. Deployments can be triggered directly from the workspace editor with a single click.

Deployment Process

The deployment process includes:

  1. Code generation based on your workspace configuration
  2. Building the application with Docker
  3. Deploying to your configured hosting provider
  4. Setting up SSL certificates
  5. Configuring domain names

Supported Hosting Providers

NextCoder supports deployment to:

Deployment Configuration

Deployment settings can be configured in your workspace:

  • Target environment (staging, production)
  • Custom domain names
  • Environment variables
  • Build settings
  • Deployment hooks

Deployment API

Deployments can be triggered programmatically:

// Trigger deployment via API
const response = await fetch('/api/workspaces/{workspaceId}/deploy', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    environment: 'production',
    customDomain: 'myapp.example.com'
  }),
});

const { previewUrl } = await response.json();

Deployment with Coolify

Coolify is the recommended deployment platform for NextCoder applications. For detailed instructions, see our Coolify deployment guide.

Key benefits of using Coolify:

  • One-click deployments
  • Automatic SSL certificates
  • Integrated database management
  • Team collaboration features
  • Resource monitoring
  • Open-source and self-hostable

Environment Variables

Securely manage environment variables for your deployments:

  • API keys and secrets
  • Database connection strings
  • Third-party service credentials
  • Feature flags