• Languages Angle Right by Iconscout from Unicons - https://iconscout.com/unicons
  • Node.js

Node.js

Lade officially supports deploying Node.js applications.

Supported Versions

The following Node.js versions are supported and receive security updates:

  • 21
  • 20
  • 18

Supported Package Managers

The following package managers are supported:

Node.js App Detection

Lade detects your app as a Node.js app if a package.json file is present in the root directory.

Dependencies Installation

If a yarn.lock file is present in the root directory, Yarn will install dependencies. Otherwise, npm will install dependencies during deployment.

Specifying a Node.js Version

You can specify the Node.js version in your package.json file:

{
  "engines": {
    "node": "18"
  }
}

Alternatively, you can specify the Node.js version in your .nvmrc file:

18

Node.js Web Process

Lade will use the following priority order to determine the web process:

  1. Procfile specifying the web process type
  2. The field main defined in your package.json file
  3. The field scripts.start defined in your package.json file

For example, you can specify a script in your package.json file:

{
  "scripts": {
    "start": "node server.js"
  }
}