DEV Community

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

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

How to Deploy a Gatsby.js to China?

What is Gatsby

Gatsby or GatsbyJS is a modern website generator (SSG) based on ReactJS, the popular framework originally from Facebook. It can be used to build blogs, e-commerce websites, web applications, and etc. Pairing GatsbyJS with a headless CMS such as Contentful enables marketing and technical teams to transform the overall digital experience.

21YunBox provides a very simple GatsbyJS deployment method. You can deploy with 21YunBox in the form of static web pages.

How to Deploy GatsbyJS in China?

  1. Register as 21YunBox member
  2. Fork Gatsby Example
  3. Use the following method to configure
Environment Static webpage
Build command yarn && yarn build
Release Directory ./public

If the description of the above text is not clear, please refer to the following operation video example:
How to Deploy GatsbyJS to a Server Example Video

Why Choose 21YunBox?

21YunBox is a Cloud Service Platform based out of Beijing, China. Our services provides you with an easy and budget friendly, end-to-end web platform deployment service for all applications and stacks. No matter your need, we have a flexible solution to assist.

If needed, we also offer full support in obtaining your ICP license which allows you to legally host online content within Mainland China.

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



This article's content originated here

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

Top comments (0)