Skip to main content
INTELLIA

Case study

Zero-downtime Next.js deployments on Azure DevOps

A CI/CD pipeline on Azure DevOps with a self-hosted agent that builds, tests and deploys Next.js applications to private servers with health checks and instant rollback.

Draft — client name and results awaiting approval
Deployment duration
Pending
Downtime per release
Pending
Release frequency
Pending

The challenge

Next.js applications were deployed by copying build output to servers manually. Releases caused brief outages, steps varied between engineers, and the target servers were on a private network unreachable from Microsoft-hosted agents.

The solution

We installed a self-hosted Azure DevOps agent inside the private network, built multi-stage YAML pipelines (build, test, package, deploy), and switched traffic between release directories with PM2 and Nginx only after health checks passed.

Zero-downtime Next.js deployments on Azure DevOps: solution architectureSource: Azure Repos, Pull request validation. Pipeline: Build and test, Package artifact, Approval gate. Private network: Self-hosted agent, PM2 cluster, NginxSource
Azure Repos
Pull request validation
Pipeline
Build and test
Package artifact
Approval gate
Private network
Self-hosted agent
PM2 cluster
Nginx
Zero-downtime Next.js deployments on Azure DevOps: solution architecture. Simplified for publication.

Implementation timeline

  1. 1 week

    Pipeline design

    Stages, environments and approvals agreed.

  2. 1 week

    Agent and scripts

    Agent installed, deploy scripts written.

  3. 1 week

    Rollout

    Applied to remaining applications.

Results

  • Metric pending

    Deployment duration

  • Metric pending

    Downtime per release

  • Metric pending

    Release frequency

Tech stack

How we built it

The pipeline builds with output: 'standalone', runs tests, publishes the artifact, then the self-hosted agent extracts it into a timestamped release folder, starts the new process on a spare port, checks a health route and swaps Nginx upstreams. The previous release stays on disk for rollback.

The full method is in Next.js CI/CD on Azure DevOps.

Draft write-up of INTELLIA engineering work; figures pending measurement.

Client testimonial pending

Have a project in mind?

Tell us what you are trying to achieve. A solution architect will reply within one business day with next steps — not a sales script.

CallWhatsAppGet a quote