DEV Community

Cover image for How to Deploy Gatsby.js in China
21CloudBox
21CloudBox

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

How to Deploy Gatsby.js in China

How to Deploy Gatsby in China

Alt Text

In this articles we discuss the options, best methods, and steps of deploying Gatsby in China while maintaining its world-class performance.

Why Gatsby?

Alt Text

Gatsby builds the fastest websites in the world. Their modern website framework implements performance and blazing fast speeds into your websites.

How to Improve Gatsby's Performance in China

Alt Text

Deploying your Gatsby code in China without the proper hosting service is like driving your Tesla Model X on muddy roads, doable but about 5-8x times slower. The slow performance is a result of foreign hosting services having to deal with the Great Firewall and foreign DNS.

There are a few static website hosting options within China, such as AWS S3 China Region or Ali Cloud OSS. In addition to the infamous slow customer service by these larger companies, they also do not offer the same level of “build and deploy” services such as Netlify or Heroku.

21YunBox was design to provide your DevOps teams solution to get the maximum performance out of your Gatsby framework.

Alt Text

21YunBox's Simple Steps to Deploy Gatsby in China

  1. Sign Up with 21Yunbox
  2. Fork Gatsby Example
  3. Use the following to configure.

Surroundings Static Pages
Build command yarn && yarn build
Publish catalog ./public

Surroundings Static Page
Build Command yarn && yarn build
Publish catalog ./public

Below is a video if you would like to watch along with a deployment example.

https://www.youtube.com/embed/GDsnAdAMrzg

Why Choose 21YunBox

Described as the Netlify of China, 21YunBox is based out of Beijing. Our solutions enable your team to be more effective in reaching the 1.3 billion people within The Great Chinese Firewall by hosting your sites at blazing speeds without having to deal with servers.

Not fluent in Chinese? No worries, 21Yunbox’s support team is hand chosen to offer you a top-notch English support experience.

If you still need your ICP license and don't want your site shut down? 21YunBox can help you out with full support in getting your required ICP license to run your site legally in China.

How to get started with 21YunBox

21YunBox is offering a 7-day Free Trial to let you test and deploy Gatsby in China.



This content originated here.

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

Top comments (0)