Skip to main content

Overview

Zanode auto-detects build settings for most frameworks, but you can customize them in your project’s Settings tab under Build Configuration.

Build command

The command used to build your app:
npm run build
Common examples:
FrameworkBuild command
Next.jsnpm run build
Vitenpm run build
Astronpm run build
Create React Appnpm run build

Start command

The command used to start your app after building:
npm start
Common examples:
FrameworkStart command
Next.jsnpm start
Expressnode server.js
Fastifynpm start
For static sites, no start command is needed — files are served directly.

Output directory

Where your build artifacts are located:
FrameworkOutput directory
Next.js.next
Vitedist
Astrodist
Create React Appbuild

Node.js version

Zanode uses Node.js 20 by default. You can specify a version in your package.json:
{
  "engines": {
    "node": "20.x"
  }
}

Build environment variables

Environment variables are available during the build process. Common use cases:
  • API keys for CMS or backends
  • Build-time configuration
  • Feature flags
See Environment variables for more details.