Node.js: How Stackhero determines your Node.js version
This documentation is part of the Node.js runtime version management guide. You can view the complete guide here: How Stackhero selects and manages the Node.js version for your application.
👋 Welcome to the Stackhero documentation!
Stackhero offers a ready-to-use Node.js cloud solution designed to help you move faster:
- Deploy to production in seconds with a simple
git push. No additional tools or manual configuration needed.- Use your own domain and take advantage of automatic HTTPS certificate setup, keeping your application secure with no extra steps.
- Enjoy automatic backups, one-click updates, and predictable, transparent pricing so you can focus on building features while Stackhero manages the infrastructure.
- Benefit from dedicated, private infrastructure for optimal performance and enhanced security.
Save time and simplify your operations: you can have your application running on Stackhero's Node.js cloud hosting in just a few minutes.
At each deployment, Stackhero checks for the first matching specification in this order:
-
imagein yourstackhero.yml. This pins the exact container image, and all other options are skipped.image: node:24-alpine3.21 -
engines.nodein yourpackage.json.{ "engines": { "node": "24.x" } } -
.nvmrcfile.24 -
.node-versionfile.24.9.0
If none of these are found, Stackhero defaults to the current Long Term Support (LTS) release, which is suitable for most projects.
The selected Node.js version and image are displayed at the top of your deployment output, so you always know what is running:
Language : nodejs 24
Base image : node:24-slim