Deplomo
Sign in
Next.js deployment guide

Deploy nextjs on Deplomo

Deploy Next.js on Deplomo with SSR, the App Router, and API routes. Connect from Git or the CLI, set build and run commands, configure environment variables and a domain, then deploy your project.

Short answer

inDeploy nextjs With server-side rendering (SSR) and the App Router, modern front-end websites can be served from the platform’s data centers. For details, see the Next.js hosting Guide deploy react and general guidance Deployment guide visit

Last reviewed:6 September 2026

Prepare your project for Deploy nextjs

Add the project dependency files, package.json and lockfile to your Git repository. Default build and run commands for this stack:

# Build command
npm ci && npm run build

# Run command
npm start -- -H 0.0.0.0 -p $PORT

NEXT_PUBLIC_ variables are included in browser code. Never use this prefix for secrets.

Automatic deployment directly from the Git repository

  1. Create a new project and environment in the Deplomo user panel.
  2. Connect the service to the GitHub or GitLab repository and the desired branch.
  3. Set the build and run commands to match your project.
  4. Set the required environment variables, then deploy.
  5. Connect your custom domain in the Domains section and use free SSL.

Deploy a local folder with Deplomo CLI

curl -fsSL https://get.deplomo.com/install.sh | sh
deplomo login
cd your-project
deplomo deploy
deplomo logs

Use the Deplomo CLI to deploy local code directly without pushing it to Git.

On Windows (PowerShell), use irm https://get.deplomo.com/install.ps1 | iex instead of the first command.

Production tips for Next.js

  • Use server output for SSR, not static export.
  • Pin the Node version in package.json.
  • Plan separate storage for caches and generated files that need to persist.
  • Check the health check and startup time before routing live traffic.
  • Store persistent data and user files on persistent disks or cloud storage.

Frequently asked questions

How do I deploy Next.js with SSR?

The platform runs npm run build and keeps the Node.js server running for server-side rendering and API routes.

How does deploying a Next.js app differ from static hosting?

You do not need to export a static site to deploy Next.js. The platform supports App Router features and caching.