preface

Github Pages was used in the early stage of the website, later migrated to Coding, and recently put into Tencent cloud website static hosting, whether it is cos bucket of coding or static website hosting

They’re all charging, so are there any free hosting companies that don’t slow down the speed of the site and do it for free, so I looked around, and vercel and Netlify are free

Next. Js, creation-react-app, nuxt.js and others are deployed and hosted on Vercel, while vuejs, ReactJS and others are hosted on Netlify

Must often open these famous official website of time, access speed or can

Today, vercel is the best place to deploy any front-end application. Touted as zero configuration deployment to our global edge network, dynamically scaling to millions of pages without effort

One click import (github, Gitlab,BitBucket support), own repository, and then push. Vercel’s built-in CI/CD system is triggered every time code changes

After the experience, it is really convenient and powerful

Video learning

  • How to deploy web site code to Vercel for free hosting

Why Vercel

⒈ Deploy managed front-end applications for free

⒉ Supports one-click import (Github, GitLab), zero configuration

⒊ Support customizing domain names and configuring SSL certificates, HTTPS.

4. Simple and friendly, personal accounts, free to deploy next. Js, Nuxt. Js, Gatsby, js, presents, Ember. Js, Hexo, Eleventy, Hugo, Docusaurus2, Preact, Dojo, Vue. Js, Jekyll, etc

The premise condition

Github Pages (this article takes Github Pages as an example, and other similar applications are the same)

⒉ Then log in to the Vercel official website, one click import

How to use it

Find the Github Pages repository in your Own Github repository

(Find your github Pages repository)

(Import github repository code in Vercel)

Custom domain name resolution

Click Settings👉Domains👉 to enter your domain name and add the domain name resolution (CNAME) in the buyer’s console (buy domain name from Ali console, buy domain name from Tencent Cloud console).

After the resolution is completed, you can access your blog through your own domain name

conclusion

If you are not satisfied with Github Pages, you can choose To host it with Vercel, also support custom domain names, and a free SSL certificate

As long as one key import code can be, very simple and convenient, you can deploy many front-end applications with one key..

Reference documentation

  • Vercel website
  • Source: https://coder.itclan.cn/