Node.js

The Node.js adapter builds your application into a standalone Node.js server. This is suitable for deploying to VPS providers (DigitalOcean, Linode), PaaS (Heroku, Railway, Render), or custom infrastructure.

Usage

The Node adapter ships inside @neutron-build/core and is selected at build time via the CLI's --preset flag — no separate install needed. For a long-running Node server, use the docker preset (which produces a Node server.mjs you can run directly without containerizing).

  1. Build with the Docker preset (produces a standalone Node server):

    npx @neutron-build/cli build --preset docker
    
  2. Run the generated server:

    node dist/server.mjs