Docs menu

Node.js

Deploy Node.js apps on Primcloud with npm, pnpm, or Yarn, plus guides for Next.js and Express.

On this page

Primcloud builds any app with a package.json at the root of its repo as Node.js, unless a Bun lockfile makes it a Bun app. It installs the Node.js version from engines.node, installs your dependencies with npm, pnpm, or Yarn from your lockfile, and runs your build script. Native modules built with node-gyp work as they do locally.

With no Procfile, your app starts with npm start (or the pnpm or Yarn equivalent), or node server.js or node index.js when there's no start script. Server apps (Express, Fastify, Koa) and frameworks that run a Node.js server (Next.js, Nuxt, Remix, NestJS) deploy the same way.

What's in this section#