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

  1. Install the adapter:

    npm install @neutron/adapter-node
    
  2. Update neutron.config.ts:

    import node from "@neutron/adapter-node";
    
    export default defineConfig({
      adapter: node({
        mode: "standalone", // or "middleware" for Express/Fastify integration
      }),
    });
    
  3. Build:

    npm run build
    
  4. Run:

    node dist/server/index.js