Blog

How to Deploy a Next.js App

Educational guide to deploying a Next.js application: build for production, GitHub-based deploy, HTTPS URLs, environment variables — plus how to ship on Runex.

· Updated · 2 min read

Direct answer

To deploy a Next.js app you need a production build, a process that serves it (or a platform that runs that process), HTTPS, and configuration via environment variables. On Runex, connect the GitHub repository and deploy to *.runex.cloud.

Product landing: Deploy Next.js on Runex.

General checklist (any host)

  1. Ensure next build succeeds locally
  2. Decide how you run production (next start or your documented alternative)
  3. Bind HTTP to 0.0.0.0 and respect PORT when the host provides it
  4. Keep secrets in environment variables — never in Git
  5. Put a custom domain behind HTTPS when you go public

Deploy Next.js with Runex

  1. Push the app to GitHub
  2. Sign up at runex.cloud and install the Runex GitHub App
  3. Select repository and branch, then deploy
  4. Open https://<deployment-slug>.runex.cloud
  5. Optionally attach a custom domain — custom domains docs

More detail: getting started and deploy from GitHub.

Environment variables

Use the dashboard to set server secrets and any NEXT_PUBLIC_* values your app needs. See environment variables.

Common problems

Next step

Open the Next.js deploy page or start from the deploy hub.

← All posts

Next step

Deploy your first application

Connect a GitHub repository, deploy with Runex, and get a production HTTPS URL on *.runex.cloud.