Deploy from GitHub
Nept can build and deploy your app on every push to a GitHub repository. This is the recommended workflow for teams: your production URL always reflects your main branch, and every pull request gets its own preview URL.
Connect GitHub
- Go to Connect GitHub.
- Authorize Nept for the accounts or organizations you want to deploy from.
- Choose which repositories Nept can access.
Create a project from a repository
- In the dashboard, click New project.
- Pick a connected repository.
- Choose a branch (typically
mainfor production). - Nept detects the framework (Next.js, React, Vite, Docker, etc.) and pre-fills build settings.
- Add environment variables.
- Click Deploy.
What happens on push
Every commit to a tracked branch triggers:
- A shallow git checkout of the commit.
- A build using the configured command.
- A deployment to a fresh URL.
- If the branch is your production branch, traffic on your custom domain is moved to the new deployment.
Branch previews
Non-production branches get their own URLs so you can share work in progress before merging. Each preview gets its own environment variables if configured.
Per-branch environment variables
Set environment variables that apply only to specific environments:
terminal
nept env add DEBUG true --target preview
nept env add SENTRY_DSN https://... --target production
Deployment logs
Live build and runtime logs are available for every deployment. See Deployment Logs.