> ## Documentation Index
> Fetch the complete documentation index at: https://docs.neterial.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy Next.js Application

Deploy a [Next.js](https://nextjs.org/) application with git push.

## Prerequisites

Complete [Getting Started](/index) steps 1-5 to set up CLI and create a VM.

## Create Next.js app

```sh theme={null}
npx create-next-app@latest my-app --yes
cd my-app
```

Test locally:

```sh theme={null}
npm run dev
```

## Deploy

Add the git remote (copy from VM creation output):

```sh theme={null}
git remote add neterial git@git.<your-hostname>.neterial.app:my-app.git
```

Push to deploy:

```sh theme={null}
git push neterial main
```

Your app URL will appear in the output.

## Re-deploy

Just push again:

```sh theme={null}
git push neterial main
```

## Advanced

For deploying with Kubernetes manifests, see [Deploy App to k8s](/guides/deploy-app-to-k8s).
