Netlify is an all-in-one platform for automating modern web projects that allows you to deploy your Navi projects either by command line or git push on your personal domain or a free
.netlify.com suffixed URL. It is especially focused on delivering JAMstack sites like the statically rendered ones generated by Navi.
This guide will show you how you can deploy a Navi project in just a few steps:
If you haven’t already set up your Navi-based project, use Create React Navi App to bootstrap one.
You can install Netlify CLI with npm:
npm i -g netlify-cli
Once you are ready to deploy your Navi app, add a
netlify.toml file to the root of your project:
## netlify.toml [build] command = "yarn build" # specify what command to use to build publish = "build" # name/location of the built folder to publish
Then run this to preview/deploy your site:
yarn build && netlify deploy ## or `netlify deploy --prod` to opt out of previewing
If you have your site linked to GitHub, GitLab or Bitbucket, you can also just
git push origin master and have your site continuously deployed by Netlify.