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
-
Install the adapter:
npm install @neutron/adapter-node -
Update
neutron.config.ts:import node from "@neutron/adapter-node"; export default defineConfig({ adapter: node({ mode: "standalone", // or "middleware" for Express/Fastify integration }), }); -
Build:
npm run build -
Run:
node dist/server/index.js