Node.js hosting (Nuxt, Next.js, Express)

October 28, 2026 132 views

Node.js hosting (Nuxt, Next.js, Express)

A hosting with the Node.js environment (Node.js 22 or 24) runs your application directly on the main domain. The web server takes the HTTPS requests – WebSockets included – and passes them to your application; if the application crashes, it is started again automatically. SSH, cron jobs and npm are available as on any other hosting. PHP, the PHP version settings, OPcache and one-click apps are not part of a Node.js hosting.

Node.js hostings are set up by our team – write to us through a support ticket.

Where to find the settings

Open https://panel.cloudweb.sk, choose the hosting and go to the Advanced tab. It holds two cards for a Node.js hosting: Node.js settings and Restart application. Changes are available to the owner and to collaborators with the "Configuration" permission; the start command can only be changed by the owner or a collaborator with the "Supervisor" permission (see collaborators).

Start command and port

  • Preset – fills in the start command: Nuxt (node .output/server/index.mjs), Next.js (npm start -- -H 127.0.0.1), Express (node server.js) or Custom command.
  • Start command – the single line that starts your application. It runs from the main folder of the hosting (the one holding your package.json). It cannot contain shell operators or special characters such as ; & | $ ( ) or a backtick, and not the words eval and exec. Keep settings in an .env file or in your application's configuration instead of in the command.
  • Application port – the port your application listens on, 1024 to 65535 (3000 by default). The ports 80, 443, 9000, 22, 3306, 6379, 8443 are reserved and cannot be used.

The application gets the environment variables PORT (the port above), HOST (127.0.0.1) and NODE_ENV (production). Make your application listen on 127.0.0.1 and the port from PORT. Do not listen on all addresses (0.0.0.0): the application would then also be reachable from other hostings on the same server, while the public traffic goes through the web server anyway. That is why the Next.js preset passes -H 127.0.0.1; Nuxt (Nitro) and Express applications that read HOST and PORT need nothing extra.

After you save, a change of the start command restarts only your application. A change of the port also reconfigures the hosting container, so the site can be unavailable for a few seconds.

Installing and building the application

Upload the project over SFTP, pull it with Git (see deployments) or work in the web terminal or over SSH (SSH keys). In the main folder of the hosting run for example:

npm ci
npm run build

Then set the start command (Nuxt and Next.js start the result of the build; Express starts your file directly) and click Restart application so the new build is picked up. A Git pull started from the panel restarts the application on its own; after uploading files by hand, restart it yourself.

npm and installation scripts

npm 12, which the hosting uses, does not run the installation scripts (preinstall, install, postinstall) of dependencies until the project approves them. After npm install or npm ci it prints a warning listing the packages that were skipped – esbuild, for example, in a fresh Nuxt project. Approve a package you trust with npm install-scripts approve <package> (it is recorded in package.json) and run npm rebuild.

Restart and logs

  • Restart application on the Advanced tab restarts the Node.js process; the site does not answer for a few seconds.
  • Your application is listed as the node-app task under Development → Supervisor Tasks, marked as managed. You can start, stop and restart it there and read its log (output and errors share one log). It cannot be edited, disabled or deleted from that list – use the Node.js settings. Other processes, such as a queue worker, are added there as ordinary tasks, see background processes.
  • If no start command is set, or the application is not running, visitors see a page saying that the application is not running. Check the log of the node-app task.

Subdomains

Your application owns the whole main domain, so a Node.js hosting handles subdomains in one of three ways, chosen on the Subdomains tab: Disabled, Serve All to Main (every subdomain shows the same application) or Redirect All to Main. Subdomains with a folder of their own are not available on a Node.js hosting. To publish a second server on a subdomain, use a proxy route.

Other ports and WebSockets

WebSockets to your application work on the main domain without any extra setting. If you run another server on a different port, for example a separate WebSocket server, you can still publish it with a path or subdomain proxy route.

Was this article helpful?

Your feedback helps us improve our documentation

Still need help?

If this article didn't answer your question, our support team is here to help.

Contact Support