Vercel (previously zeit) is similar to Netlify, making deployment of sites easy. The sites are hosted by Vercel and automatically deployed whenever we push a commit to our selected production branch (e.g, master).
If you don't have an account with Vercel, you can sign up here.
Once you sign up you can import your site from a Git provider (Github, GitLab or Bitbucket). After the import, you can set the settings for your project.
zola build
and make sure toggle on Override switch.public
, if you use a different directory then specify output directory.All we have to is include a vercel.json
in our project's root directory by
specifying the ZOLA_VERSION
we want to use to deploy the site.
{
"build": {
"env": {
"ZOLA_VERSION": "0.12.0"
}
}
}
And your site should now be up and running.