Skip to content

Next.js

Add a service from your Next.js repo. Nixpacks detects node from package.json. A Dockerfile in the service root always wins.

Nixpacks detects Next.js from package.json and next. Bind to PORT. For the App Router, output: 'standalone' in next.config is a good fit for containers.

  1. DashboardNew project (or open an existing canvas).
  2. + Service → Git repository. Pick the repo and branch.
  3. Review staged changes and Deploy.
  4. Generate a *.stackblaze.app domain, or attach a custom domain.

Override install / build / start on the service if detection is wrong. Typical start: next start.

If you already have a Dockerfile, StackBlaze uses it. The process must listen on PORT.

+ Service → Databases for Postgres, Redis/Valkey, MySQL, and others. Wire DATABASE_URL from the service Variables tab or fromDatabase in stackblaze.yaml.

Terminal window
stackblaze login
stackblaze init
stackblaze up

See the CLI.