To deploy a React or Vite app on Ngris, connect its Git repository or upload the built folder. Ngris builds the app and serves it over HTTPS, every push ships a new version, and any earlier version stays one click away. This guide has both ways with the exact commands, then the things you set once: build settings, environment variables, previews, your domain, and a sign-in or a firewall in front of the app. The last part is for people coming from Vercel: what is the same, and what differs.
Deploy from a Git repository
In the dashboard, open Applications → New, choose Connect Git, then Connect GitHub. GitHub asks you to install the Ngris app and to pick the repositories it may read. Back in the wizard, pick the repository and create the app. From then on every push to its branch builds and deploys. There is no token to paste and no webhook to add.
Ngris detects how to build the project: Vite and Create React App, and also Next.js, Astro, SvelteKit, Nuxt, Gatsby, Angular and Hugo. It installs the dependencies, runs the build in a sandbox that exists for that one build, and publishes the output folder. A GitLab repository, or a public one, connects with its URL and a webhook: the Static Apps docs have the steps.
Or deploy a folder you built yourself
# build: Vite writes dist/, Create React App writes build/
npm run build
# zip the contents, so index.html sits at the root of the zip
cd dist && zip -r ../dist.zip . && cd ..
# one call: creates the app, its first deploy and its public URL
curl -X POST "https://api.ngris.com/v1/applications/quick-deploy" \
-H "X-API-KEY: $NGRIS_API_KEY" \
-F "name=my-react-app" \
-F "file=@dist.zip" \
-F "wait=true"
The answer carries the live url. The same upload works in the dashboard: Applications → New → Upload files. A zip can be up to 100 MB. Each upload is a new version of the app.
Build settings and environment variables
You only touch build settings when the project is not standard. On the app's Settings tab you can replace the install command, the build command and the output folder; a box left empty is detected as before. Builds run on Node.js 24 with npm, pnpm or yarn, picked from your lockfile.
Configuration goes on the Environment tab. Each variable is given to the build under its exact name, so VITE_API_URL is available to vite build as it is. A variable applies to production, to previews, or to both, and a change takes effect on the next deploy.
// in your code, as always
const api = import.meta.env.VITE_API_URL
One thing to know about React and Vite, on any host: a variable with the VITE_ or REACT_APP_ prefix is compiled into the JavaScript that every visitor downloads. An API address belongs there. A secret key does not.
A preview for every pull request
With the repository imported through GitHub and Preview pull requests switched on, each pull request gets a preview of its branch, and every new commit builds it again. Ngris writes one comment on the pull request and keeps it up to date: queued, building, then the preview link. Previews are private to your account until you choose to share them, and closing the pull request removes them.
Roll back
Every deploy is kept as its own version. On the Deploys tab, Roll back on an earlier version serves that version's built files again. Nothing is rebuilt. The tab shows which versions can still be rolled back to; the oldest ones are removed over time.
Your domain and HTTPS
A new app is live on a generated name.ngris.dev address. To serve it on your own domain, add the domain under Domains, then add an endpoint on it from the app's Domains tab. The certificate is issued and renewed for you. An app can have several addresses, for example example.com and www.example.com.
Put a sign-in, a firewall or a rate limit in front of it
The address of a deployed app is an endpoint on the same edge as a tunnel, so everything an endpoint can carry applies to it: sign-in, firewall rules, rate limits, caching. That is how you keep a staging build or an internal tool away from the public without changing the app:
- Private app. Set the app's visibility to private and only members of your Ngris account can open it.
- Sign-in on one address. Open Manage settings on the endpoint and require a password, a token, or single sign-on.
- Rules. Attach firewall and rate-limit rules, or describe them to Iris, the built-in assistant, which drafts the rule and shows what it would have done to your recent traffic before anything is applied:
"Block /admin for everyone outside our office network,
and rate-limit the API routes to 60 requests a minute per IP."
When the app needs a backend or a database
A React front end usually talks to an API. You can keep that API where it runs today and give it a public address with a tunnel (ngris http 8080, see exposing localhost to the internet), or host it next to the front end:
- A long-running backend. A Go, Node or Python service is detected and built; anything else runs from a Dockerfile, a Next.js server included. See backend apps and full-stack apps.
- Serverless functions for work that runs per request. See serverless functions.
- A managed database a full-stack app can connect to. See databases.
Coming from Vercel
The deploy loop is the one you know: push to Git, a preview for each pull request, environment variables, a rollback to any recent version. Two things differ, one in each direction.
| What it means for you | |
|---|---|
| On Ngris | The deployed app is an endpoint like any other, so sign-in, firewall and rate-limit rules attach to it directly, and the backend it calls can be a tunnel from the same account |
| On Vercel | A larger framework ecosystem and more ready-made integrations |
The feature-by-feature page is Ngris vs Vercel, which marks only what Ngris ships today. There is also Ngris vs Netlify and Vercel. App hosting is part of your plan: the pricing page lists the current plans and what each includes.
Deploy your React or Vite app
Create an account, connect a repository or upload a build, and open the URL.
Create a free account →Frequently asked questions
Can Ngris deploy a React or Vite app?
Yes. Connect a GitHub or GitLab repository, or upload the built folder as a zip. Ngris detects Vite and Create React App, runs the install and the build in a sandbox, and serves the output over HTTPS. Every deploy is kept as its own version, so you can go back to an earlier one without rebuilding.
How do I deploy a Vite app to Ngris?
Connect the repository under Applications, New, Connect Git: every push to the branch builds and deploys. Or run npm run build, zip the contents of dist with index.html at the root, and upload it in the dashboard or with one call to the quick-deploy API.
Where do VITE_ environment variables go?
On the app's Environment tab. Each variable is given to the build under its exact name, so VITE_API_URL is available to vite build as it is, and a change applies on the next deploy. Anything with the VITE_ prefix ends up in the JavaScript the browser downloads, so do not put a secret there.
Is Ngris a Vercel alternative for a React app?
For the deploy loop, yes: Git push to deploy, a preview for each pull request, environment variables and rollbacks work the way you know. On Ngris the app is an endpoint on the same edge as your tunnels, so a sign-in, a firewall or a rate limit attaches to it directly. Vercel has the larger framework ecosystem and more integrations.
Does Ngris run the backend and a database too?
Yes. A Go, Node or Python service is detected and built, anything else runs from a Dockerfile, a Next.js server included, and serverless functions handle per-request work. A full-stack app can connect a managed database.
What does it cost to deploy a React app on Ngris?
App hosting is part of your plan. The pricing page lists the current plans and what each includes.