Skip to content
Blog
ReactDeploy

Deploy react to netlify

Deploy react to netlify

Ragav Kumar V

Ragav Kumar V

Aug 20, 2022 · 1 min read

A local page reaches a hosting platform through a folder route and a linked revision route.
AI-assisted original illustration

There are 2 ways to deploy to netlify

  1. Type in terminal - npm run build
  2. Drag & Drop build folder into netlify
  1. Login to Netlify
  2. Connect to github & Choose your repo
  3. CI=false npm run build as Build command
  4. Deploy site
  5. Create _redirects file in public folder with below content

_1
/* /index.html 200

Deployment article

Freecodecamp deploy article

@ragavkumarv
swipe to next ➡️