How Nept Deploys an App from Code to Production
Updated
Nept turns a Git push into a live, globally distributed deployment. Connect a repository (GitHub, GitLab, or Bitbucket), and every push triggers an automatic build that Nept optimizes and ships to edge nodes — no server configuration required. Each branch also gets its own preview URL so you can review changes before merging to production. This guide covers the four-step flow, what happens at each stage, and where things commonly go wrong.
The four-step deployment flow
Nept's own documentation describes the process as "from code to production in seconds," broken into four stages.
Step 1 — Push your code
Connect your Git repository to Nept. From that point on, every push to a tracked branch triggers an automatic build. The docs list GitHub, GitLab, and Bitbucket as supported sources.
git push origin main
Input: a commit pushed to a connected branch. Expected result: Nept detects the push and queues a build.
Step 2 — Auto-deploy (build and optimize)
Nept builds, optimizes, and deploys the app. The platform advertises "smart caching" — specifically a content-addressed cache and remote build workers — so repeat builds get faster as you ship more. The docs show a sample build completing in about 4.2 seconds, though real times depend on your project size and dependency graph.
Input: the pushed commit plus cached build artifacts from prior builds. Action: Nept runs the build, optimizes assets, and produces a deployable output. Expected result: a successful build ready to publish.
Step 3 — Go global instantly
Once built, the app goes live on Nept's edge network with zero extra configuration. Users are served from edge nodes close to them. Nept lists three regions with published health and latency figures:
| Region | Location | Latency | Uptime |
|---|---|---|---|
| iad1 | Ashburn, VA (US-East) | 38 ms | 99.998% |
| cdg1 | Paris, FR (EU-West) | 44 ms | 99.996% |
| bom1 | Mumbai, IN (AP-South) | 52 ms | 99.994% |
Expected result: your app is reachable at a live URL (the docs show the pattern https://app.nept.cloud).
Step 4 — Preview and iterate
Every branch gets a unique preview URL. Share it with your team, collect feedback, and iterate before merging to production. The docs give the pattern:
preview: feat-xyz.app.nept.cloud
Expected result: a shareable staging URL per branch, isolated from production until you merge.
What Nept handles for you
The platform bundles several concerns that would otherwise need separate setup:
- Framework detection — auto-detected build settings for Next.js, Svelte, Astro, Remix, and Qwik. Custom Dockerfiles are supported for anything else.
- Edge functions — lightweight TypeScript functions deployed globally in one command, aimed at auth, personalization, A/B tests, and low-latency APIs.
- Security defaults — automatic TLS certificates on every domain, DDoS mitigation, and a WAF with managed rules, included rather than added on.
- Serverless scaling — cold starts under 30ms, elastic concurrency, and pay-per-request pricing, so traffic spikes don't require manual capacity changes.
Common sticking points
- Build failures block deployment. If Step 2 fails, nothing ships. Check the build log first — framework auto-detection usually works, but monorepos or unusual output directories may need a custom Dockerfile or adjusted settings.
- Preview URLs are per branch, not per commit. Pushing again to the same branch updates that branch's preview rather than creating a new one.
- Production is a merge decision. Previews are isolated; the live app updates when you merge to your production branch.
- Caching speeds up repeats, not first builds. The content-addressed cache helps most on subsequent deploys with similar dependencies.
When this workflow fits
Nept's push-to-deploy model suits teams that want Git as the single source of truth for releases, need per-branch previews for review, and prefer not to manage servers or edge configuration. If your project already builds cleanly in CI and you want global distribution without a DevOps layer, the four-step flow above is the entire workflow.