DocsBuild and deploy
Build settings
The Node version, the package manager, the install, build and start commands and the port of an app, where each is set, and how each is filled in from your code.
Use with AI
The build settings say how your code becomes a running app. Most are filled in from your repository when you create the app. You find them later under Settings, Build & deploy. They do not follow the repository by themselves: after you change .nvmrc, engines.node or the scripts in package.json, change the setting too.
A change takes effect with the next deployment. Saving does not deploy.
Only the owner and the admins of the team can change the install, build and start commands. For a member the card says “Only team admins can change the install, build, start and deploy commands.” See Teams.
The settings
Section titled “The settings”| Setting | If you set nothing | What it is |
|---|---|---|
| Branch | Chosen when you create the app | The branch that is deployed. See Repositories |
| Root directory | The top of the repository | The folder with your package.json. See Root directory |
| Node version | 24 | 18, 20, 22 or 24 |
| Port | 3000, or the framework’s own: 4321 for Astro, 3333 for AdonisJS | The port your server listens on, 1024 or higher. Also set as the PORT variable |
| Install command | Filled in from your lockfile, see below | How packages are installed. Empty means no install |
| Build commands | From your package.json |
What runs after the install |
| Start command | npm run start, or what the framework needs |
What starts your server |
The framework is not among the settings: it is set when the app is created. See How the framework is chosen.
Node version
Section titled “Node version”Node.js 18, 20, 22 and 24 are available. 24 is used when nothing says otherwise. Node 18 and 20 reached end of life upstream and get no security fixes any more: they stay available so apps on them keep building, and the dashboard says so wherever one is chosen or shown. Pick 22 or 24 when you can.
When you create the app, the version comes from .nvmrc first, then from engines.node in package.json. A .node-version file is not read.
If your code asks for a version that is not available, the closest one is taken: 16 becomes 18, 26 becomes 24. A range with no upper end, >=18 for example, gets 24.
Package manager
Section titled “Package manager”There is nothing to choose. The lockfile in the root directory decides, or the lockfile at the top of the workspace for an app in a workspace:
| Lockfile | Package manager | Install command |
|---|---|---|
pnpm-lock.yaml |
pnpm | pnpm install --frozen-lockfile |
yarn.lock and .yarnrc.yml |
Yarn 2 or newer | yarn install --immutable |
yarn.lock |
Yarn 1 | yarn install --frozen-lockfile |
bun.lock or bun.lockb |
Bun | bun install --frozen-lockfile |
package-lock.json |
npm | npm ci |
| None | npm | npm install |
Commit your lockfile and keep it in step with package.json. With pnpm, Yarn and Bun, a lockfile that does not match fails the build.
- pnpm and Yarn are started through Corepack, so the version in the
packageManagerfield of yourpackage.jsonis the one that runs. - Yarn 2 or newer installs into
node_modules, whatever linker your.yarnrc.ymlnames: Plug’n’Play is not used, so the start command finds its packages the usual way. Its dev dependencies are not removed after the build. - Bun installs the packages only. The app itself runs with Node, as every app does, so a start command that runs
bunorbunxis refused before anything is built: start the app withnodeor withnpm run start. During the buildbunis there, so a build command such asbun run buildworks. Bun 1.4.2 runs the install, and reads both its text lockfile and the older binary one.
The downloads of the package manager are kept between builds of the same app. What the install brings in and what the running app keeps: Packages.
Install command
Section titled “Install command”When you create the app, the command of the table above is filled in for your lockfile. With that command the platform installs its own way: with the dev dependencies a build needs, which are taken out again after the build, and the package manager’s own flags.
Change it to install your own way, npm ci --legacy-peer-deps for example. It is one line and runs as written. For an app in a workspace it runs at the top of the workspace.
Leave it empty and nothing is installed: no install step, no packages taken out after the build. For an app that has its node_modules committed, or needs none.
An app created before the command was filled in shows none under Settings, Build & deploy until its next build (a push, or a deployment after a change to a build setting or a variable), which writes the command the platform used all along.
Build commands
Section titled “Build commands”One command per line. They run in order after the install, and the build stops at the first one that fails.
When you create the app, the build command is filled in like this:
| Your repository has | Build command |
|---|---|
A build script in package.json |
npm run build |
No build script, and the framework builds (Next.js, Nuxt, React, Vue, Angular, NestJS, SvelteKit, Astro, React Router, TanStack Start) |
npm run build |
No build script, and the framework is AdonisJS |
node ace build |
A tsconfig.json and no build script |
npx tsc |
| None of these | No build step |
With a build command, the packages in devDependencies are installed for the build and removed after it. See How an app is built.
Start command
Section titled “Start command”npm run start unless you change it. If your package.json has no start script but a main file, node with that file is suggested.
Some frameworks start their own way, and the guide of each says why:
| Framework | Start command |
|---|---|
| Next.js | npm run start, which runs next start. See Next.js |
| Nuxt | node .output/server/index.mjs, unless package.json has a start script. See Nuxt |
| React | node /platform/static.cjs dist, or build in place of dist with Create React App. The start script is never used. See React |
| Vue | node /platform/static.cjs dist. See Vue |
| Angular | node /platform/static.cjs dist; the platform finds the built site inside dist, whichever folder ng build writes. See Angular |
| AdonisJS | node build/bin/server.js. The start script is never used. See AdonisJS |
| NestJS | node dist/main. The start script is never used. See NestJS |
| SvelteKit | node build with adapter-node, node /platform/static.cjs build with adapter-static. See SvelteKit |
| Astro | node /platform/static.cjs dist, or node dist/server/entry.mjs with the Node adapter. See Astro |
| React Router | npm run start, which runs react-router-serve. See React Router |
| TanStack Start | node .output/server/index.mjs with nitro. The start script is not used. See TanStack Start |
Start the server with node. Tools that watch files and restart (nodemon, for example) are for your own machine, and they are usually in devDependencies, which the running app does not have. A TypeScript app starts its built file, node dist/server.js for example.
Your server has to listen on this port, on all interfaces. The platform sets it as the PORT variable, so process.env.PORT always has the right value. See Port and address.
Choose a port from 1024 to 65535. Lower ports are not open to an app. A new app gets 3000, or the port its framework uses by itself: 4321 for Astro, 3333 for AdonisJS.
Rules for a command
Section titled “Rules for a command”The install and start commands are one line each; the build commands may have several. A command cannot start with a dash, and a line cannot end with a backslash or with a carriage return alone. Control characters, invisible characters and bytes that are not UTF-8 are refused, for the build commands with “The build command contains characters that cannot be used.” A tab is fine.
Each line runs without set -e: in false; echo ok only the last command decides whether the line failed. This differs from deploy commands, which stop at the first error. A command that runs software the acceptable use policy does not allow is refused before anything is built. See Software the platform does not host.
© 2026 Orbit