Netlify

Deployment guideBeginner

Deploy static sites and single-page apps from Git or the terminal.

Suits

  • Static Site
  • SPA

Steps

  1. Connect the repository or use the Netlify CLI.

  2. Set the build command and the output folder.

  3. Add a _redirects file for single-page apps.

Example · bash
npm i -g netlify-cli
netlify deploy
netlify deploy --prod
# _redirects:
/*  /index.html  200

Sources

  1. Netlify Docs