Provisioning Contentful
Using the import configuration property to provision Contentful when duplicating a GitHub repository.
This is only relevant when creating a Stackbit project by duplicating a GitHub repository.
You don't need Contentful provisioning if you have already set up a Contentful space for your project, or if you plan to manually create and configure a space.
Stackbit will handle provisioning a new Contentful space, along with the initial payload of models and content when creating a new project by duplicating a GitHub repository.
Exporting Content from Contentful
In most cases, projects that can be provisioned with Contentful as a content source have a Contentful space as the source of truth for duplicated projects.
The first step in preparing your project to be duplicated is to export the content schema and the initial site contents from your Contentful space.
Be sure to configure the exports to include content types, entries, and to download assets. This will place your exported data in a new directory located wherever you ran the export command. Place this directory and its contents in your project and commit the files to Git.
Import Configuration
Once you've exported the content (and committed the data files), all that is left to do is add configuration for importing the content during the provisioning process.
The following properties should be added to an import
property in your Stackbit configuration file. All properties are required and are strings, unless otherwise noted.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23