Skip to main content
Deploy a Next.js application with git push.

Prerequisites

Complete Getting Started steps 1-5 to set up CLI and create a VM.

Create Next.js app

npx create-next-app@latest my-app --yes
cd my-app
Test locally:
npm run dev

Deploy

Add the git remote (copy from VM creation output):
git remote add neterial git@git.<your-hostname>.neterial.app:my-app.git
Push to deploy:
git push neterial main
Your app URL will appear in the output.

Re-deploy

Just push again:
git push neterial main

Advanced

For deploying with Kubernetes manifests, see Deploy App to k8s.