DEV Community

Cover image for How to Make Vercel Work in China?
21CloudBox
21CloudBox

Posted on • Updated on • Originally published at 21cloudbox.com

How to Make Vercel Work in China?

What is Vercel?

Vercel (previously called Zeit or now.sh) is a cloud platform that provides static sites hosting. It supports automatic pulling code from code repositories such as Github, GitLab, Bitbucket. It then performs project packaging and deployment functions.

Does Vercel work in China?

Below is a speed test of the site deployed by Vercel in China.

Red, Orange, Yellow = Bad, Slow
Green = Good

Alt Text

Below is a speed test of the same site deployed with 21YunBox in China.
Alt Text

The color represents the feedback time of the site with green being faster, and red being extremely slow or even inaccessible.

As you can see, the site deployed with Vercel in China is much slower if at all.

After deploying the site in 21YunBox, the site performed much better across all of China.

Source Code of the Test Project

We chose a Hexo Blog as the test object for this deployment example. The default template was used and no additional changes were made.

How to Improve the Access Speed of Vercel in China?

If it’s a static site, you may consider storing it in the storage space of a domestic cloud service provider, such as AWS China S3 or Aliyun’s OSS, which basically guarantees the speed of site access.

The disadvantages of deploying in these storage spaces are also pretty obvious. There are alot upfront configurations, if you want to utilize continuous deployment (Git push automatic packaging and deployment), you will need more configuration.

If you prefer a hassle free and simple solution like Vercel for China, you can host your static site in 21YunBox.

Steps to Hosting a Static Site with 21YunBox

1. Register as a 21YunBox member

2. Authorize 21YunBox to access the code repository you want to deploy

Alt Text
Example Image:Select the code repository to deploy in 21YunBox

3. Configure Build (Package) Command and Release Directory

Alt Text
Example Image: Configure Hexo build (package) command and release directory

4. Click "Deploy Now"

In seconds, your site is packaged and deployed online.

You can access your project at app_id.21yunbox.com (app_id is created and defined).

If you are not sure how to set up, please watch the step by step example video.

What else can the 21YunBox Deploy?

Like a back-end application framework Python Django or PHP Laravel This is notoriously complicated to deploy. The 21YunBox also allows you to complete the package and go online to generate a unique second-level domain name in 3 or 4 minutes.

What about deploying database in China? Yes, we can also simplify this process for you with a one-click to build database solution. Check out these PostgreSQL or MySQL examples (with videos).

Want to know more? You can check Help Document

Why Choose 21YunBox?

21YunBox specializes in helping foreign businesses to host their websites in China. We deliver everything you and your team needs to build, run, and scale websites and apps in China.

Have questions about bringing your website to China? Talk to an expert today.



To learn about the differences between 21YunBox and these foreign (outside of China) cloud service platforms? You can refer to:



This article's content originated here

For additional detail and future modifications, refer the original post.

Top comments (0)