Skip to main content
Use this guide for server-side JavaScript applications that run as a managed runtime service.

Typical use cases

  • Express.js APIs
  • Node.js web backends
  • runtime apps that need rebuild and restart support

Source and runtime behavior

Node.js / Express.js apps are treated as runtime applications rather than static build-only sites. Current behavior includes:
  • deploy
  • rebuild
  • restart when the runtime is healthy

App creation behavior

During app creation, the dashboard currently treats Node.js / Express.js as a managed runtime type and sets a runtime start-command path for the app configuration.

Node.js version and options

Choose the Node.js version when you create the app (step 3) or later in the app’s Settings tab under Runtime. Changes apply on the next rebuild. Only versions that still receive security fixes are offered. Apps created before versions could be chosen build with Node.js 22 until you pick one. Node.js options sets NODE_OPTIONS for the build and the running app. For safety only tuning and diagnostic flags are accepted: --max-old-space-size, --max-semi-space-size, --stack-trace-limit, --unhandled-rejections, --dns-result-order, --enable-source-maps, --trace-warnings, --trace-deprecation, --trace-uncaught, --no-deprecation, --no-warnings and --openssl-legacy-provider. Flags that load code (--require, --import) or open a debugger (--inspect) are refused. PATH and NODE_OPTIONS cannot be set as variables; Servbase sets them from these settings.

Environment variables

Use app settings to configure:
  • API secrets
  • database URLs
  • service credentials
  • environment-specific runtime values

Operational notes

  • Node.js / Express.js apps run with plan-based runtime performance limits
  • rebuild is available for runtime apps
  • restart is intended for healthy deployed runtime services

Rebuild source behavior

If the app is not connected to GitHub, rebuild normally uses the current workspace contents. If the app is connected to GitHub, rebuild can be run from either:
  • GitHub — re-clone and rebuild from the repository source
  • Workspace — rebuild from the current files in the Servbase workspace

Checklist

  • Confirm app type is Node.js / Express.js
  • Confirm your source contains the runtime application code expected by your project
  • Confirm required environment variables are set in Servbase
  • Confirm the correct branch is selected when deploying from GitHub

Build settings

Choose npm, pnpm, yarn or bun and set the root directory and the install, build and start commands (default start: <manager> start). Your server must listen on the PORT environment variable. See Build settings & CI/CD.