A templete to deploy a Hexo blog with Netlify-CMS on Vercel.
✔ Totally free of charge
✔ Static web pages, no rendering time
✔ Edit online, just as simple as using a dynamic CMS, supported by Netlify-CMS
✔ No local environment required, you can edit your pages on any devices, everywhere
✔ Zero coding
✔ Preview is supported by Netlify-CMS and Netlify
✔ Vercel CDN makes your pages to load quickly from anywhere in the world, including China Mainland
✔ Easy to bind to your domain, and enable SSL encrypt, supported by Vercel
- Customized 404 page
Use this templateto fork this repository. It can be private.
/source/admin/config.yml. Change the value of
Go to Github Developer applications and create a new oauth app. The only important field is
Authorization callback URL, input
<domain>is domain from step 2, also note that HTTPS is required. And then generate a new client secret.
Go to Vercel to import your repository and create a new project. Before clicking
Deploybutton, add the Environment Variables
OAUTH_GITHUB_CLIENT_SECRETand set the values as generated in the previous step.
Deploybutton and waiting for the deployment finished.
Maybe you need to change the Vercel provided domain in Settings > Domains.
https://<domain>/admin/and login to the Netlify-CMS back-end.
Test whether Netlify-CMS is working properly.
If you need the preview feature provided by Netlify-CMS, that is, provides you a preview link on the article writing page once you click
savebutton, you also need to link your blog repository to Netlify. This is similar to link to Vercel, but you do not need to add Environment Variables since you do not use Netlify-CMS on the Netlify provided domain.
Congratulations! You have successfully deployed a Hexo blog with Netlify-CMS on Vercel.
The oauth gateway for Netlify CMS is implemented by ublabs/netlify-cms-oauth.