Deploy & ShipBeginner-friendly

Deploy a React App to Netlify: Step-by-Step Guide (2026)

Deploy Vite or Create React App to Netlify in under 15 minutes. Covers build settings, SPA redirects, env vars, custom domains, and the most common deploy errors in 2026.

Netlify for React apps

Netlify is ideal for static React apps and Vite-based projects. It offers continuous deployment from Git, form handling, serverless functions, and a generous free tier. If your React app doesn't need server-side rendering, Netlify is a great choice.

Build configuration

For Vite: build command is `npm run build`, publish directory is `dist`. For Create React App: build command is `npm run build`, publish directory is `build`. Netlify auto-detects most configurations, but verify these settings in your project's Build & Deploy settings.

Handling client-side routing

React apps with client-side routing (React Router) need a redirect rule. Without it, direct links to routes like /dashboard return 404. Create a `_redirects` file in your public folder with: `/* /index.html 200`. This tells Netlify to serve your app for all routes and let React Router handle them.

Environment variables

Add environment variables in Netlify's Site Settings > Environment Variables. For Vite apps, client-side variables must be prefixed with VITE_ (e.g., VITE_API_URL). For CRA, use REACT_APP_ prefix. Redeploy after adding variables - they're only available during build time.

Custom domain

In Domain Settings, add your custom domain. Configure DNS by pointing your domain to Netlify's load balancer or using Netlify DNS. SSL certificates are provisioned automatically through Let's Encrypt.

Need help with this?

Our team handles deploy & ship for AI-built apps every day. Get a fixed quote within 24 hours.

Our services

Get expert help with your app.

Most Popular

Security Review

Security Review

from $250

Expert engineer works on your project directly. Fixed scope, fixed price, no surprises.

Request a Quote

Security Review

Full Pentest

Custom

Enterprise-grade engagement tailored to your needs. Dedicated engineer, ongoing support.

Fix Bugs

Bug Fixing

from $200

Expert engineer works on your project directly. Fixed scope, fixed price, no surprises.

Request a Quote

Fix Bugs

Ongoing Support

Custom

Enterprise-grade engagement tailored to your needs. Dedicated engineer, ongoing support.

Refactor Code

Refactoring

from $400

Expert engineer works on your project directly. Fixed scope, fixed price, no surprises.

Request a Quote

Refactor Code

Full Rewrite

Custom

Enterprise-grade engagement tailored to your needs. Dedicated engineer, ongoing support.

All projects start with a free consultation. We scope your project and provide a fixed quote before any work begins.

Related technologies

Need help with your app?

Tell us about your project. We'll respond within 24 hours with a clear plan and fixed quote.

Request a Quote