Skip to main content
Starts a supervised production server with automatic restart on crashes. Uses the FrontMCP process manager.

Usage

nx serve my-app

Configuration

project.json
{
  "targets": {
    "serve": {
      "executor": "@frontmcp/nx:serve",
      "options": {
        "entry": "{projectRoot}/src/main.ts",
        "port": 3000
      }
    }
  }
}

Options

OptionTypeDefaultDescription
entrystringEntry file path
portnumberPort to listen on
maxRestartsnumber5Maximum number of automatic restarts

Behavior

  • Process supervision: Automatically restarts on crash (up to maxRestarts)
  • Graceful shutdown: Handles SIGTERM for clean stops
  • Not cacheable: Long-running process