In this blog, we will walk through the steps of publishing websites using Contentful with 21YunBox.
Steps to publish contentful sites in China using 21YunBox:
- Sign up on 21YunBox
- Create or use existing Contentful space
- Fork Contentful Starter on Github
- Use the following values during creation:
Runtime | Static Site |
---|---|
Build Command | yarn && yarn build |
Publish Directory | ./public |
Click Advanced Configuration to add below environment variables:
KEY | VALUE |
---|---|
CONTENTFUL_SPACE_ID | You can find it on Contentful Dashboard -> “Settings” -> API Keys -> “Space ID” |
CONTENTFUL_ACCESS_TOKEN | You can find it on Contentful Dashboard -> “Settings” -> API Keys -> “Content Delivery API - access token” |
Here are the screenshots of finding the space ID and the access token for contentful.


If you are using 21YunBox to preview (before you publish the content live to the public), you can use the “Content Preview API - access token” instead. This preview feature gives you the flexibility to preview internally.
That’s it! Your website will be live on your 21YunBox URL as soon as the build finishes.

So what happens if I add new content on Contentful, do I need to redo the steps above?
You need to press the purple deploy button on the 21YunBox console, and then the 21YunBox Build system will pull the content from the Contentful server and deploy it once it’s done building.

To automate it, you can follow the steps below to configure it.
Steps to setup auto-publish with Contentful and 21YunBox
1. On Contentful Dashboard, click “Settings” -> “Webhooks.”

2. Click “Add Webhook” on the top right

3. Then, configure it using the below values.
You can find the build “URL” on 21YunBox Console. It’s under your project’s settings tab.

4. Save the webhook.
That’s it! Now when new content publishes on Contentful, 21YunBox will automatically build and deploy the changes for you.
Related Articles:
- Does Contentful Work in China
- How to Speed-Up Netlify in China
- How to Deploy Next.js to Server?
- Does Sanity CMS Work in China?
- Does SAP Cloud Work in China?
- Does Oracle Cloud Work in China?
Related Posts
- Does SAP Commerce Cloud Work in China?
- Does Oracle Cloud Work in China?
- Does Liferay Work in China?
- Does Optimizely Work in China?
- Does Bloomreach Work in China?
- Does Adobe Experience Cloud Work in China?
- US Largest Lighter Delivers Site 8x Faster with 21YunBox
- Bottega Veneta uses 21YunBox to Connect with China
- Does Acquia Work in China?
- Turn WordPress into Headless in China
- Publish Websites Using Airtable With 21YunBox
- How to Make Airtable Work in China?
- Does Airtable Work in China?
- Integrate Contentful, Gatsby with 21YunBox
- 5 Steps to Make Static Sites Live in China
- Does DatoCMS Work in China?
- How to Make Contentful Work in China?
- How to Make Sanity CMS Work in China?
- How 21YunBox Helped Commune Lifestyle Launch in China
- Publish Websites Using Sanity CMS With 21YunBox
- How to Deploy Gatsby Static Sites in China?
- Does Sitecore Work in China?
- Does Sanity CMS Work in China?
- How to host Ghost Blog in China?
- How 21YunBox Helped Ethereum Launch in China
- How to Deploy Gatsby Static Sites in China (A Step-by-Step Guide)
- Alternatives to Sanity CMS in China
- Does Salesforce Commerce Cloud Work in China?
- Alternatives to Algolia in China
- Does Contentful Work in China
- How to Deploy Hugo Static Sites in China?
- How to Deploy NextJS Apps in China? (A Step-by-Step Guide)
- How to Deploy Express Apps in China? (A Step-by-Step Guide)
- How to Deploy Strapi Headless CMS in China? (A Step-by-Step Guide)
- How to Deploy NuxtJS Apps in China? (A Step-by-Step Guide)
- Does Drupal Work in China?
- How to Deploy Jekyll Static Sites in China? (A Step-by-Step Guide)
- How to Deploy Docsify Static Sites in China? (A Step-by-Step Guide)
- How to Deploy VuePress in China? (A Step-by-Step Guide)
- How to Deploy Hexo Static Sites in China? (A Step-by-Step Guide)
- How to Deploy VueJS Apps in China? (A Step-by-Step Guide)
- How to Deploy React Apps in China? (A Step-by-Step Guide)
Recent Posts
-
How To Publish My Game In China
Sep 18, 2023
-
Content Restrictions and Requirements For Publishing Games In China
Sep 5, 2023
-
China Health Gaming Advisory
Sep 2, 2023
-
Method for Determining Illegal and Improper Collection and Use of Personal Information by Apps
Sep 2, 2023
-
Notice on Preventing Minors from Addiction to Online Games
Sep 1, 2023