- Languages
- Node.js
Node.js
Lade officially supports deploying Node.js applications.
Supported Versions
The following Node.js versions are supported and receive security updates:
- 25
- 24
- 22
- 20
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": "20"
}
}
Alternatively, you can specify the Node.js version in your .nvmrc file:
20
Node.js Web Process
Lade will use the following priority order to determine the web process:
Procfilespecifying the web process type- The field
maindefined in yourpackage.jsonfile - The field
scripts.startdefined in yourpackage.jsonfile
For example, you can specify a script in your package.json file:
{
"scripts": {
"start": "node server.js"
}
}