-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstackbit.yaml
More file actions
37 lines (34 loc) · 1.27 KB
/
stackbit.yaml
File metadata and controls
37 lines (34 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# The stackbit.yaml file lets you define the characteristic of your website
# needed to make your theme, or project, work with Stackbit. For more info about
# stackbit.yaml configuration visit https://www.stackbit.com/docs/stackbit-yaml/
stackbitVersion: ~0.3.0
ssgName: gatsby
cmsName: contentful
nodeVersion: '14'
# The "buildCommand" and the "publishDir" properties are used to configure the
# serverless deployment platform when Stackbit creates a new site from this theme.
buildCommand: npm run build
publishDir: public
# The "import" object defines how Stackbit should provision Contentful when
# creating a new site from this theme via https://app.stackbit.com/create.
import:
type: contentful
contentFile: contentful/export.json
uploadAssets: true
assetsDirectory: contentful
spaceIdEnvVar: CONTENTFUL_SPACE_ID
accessTokenEnvVar: CONTENTFUL_ACCESS_TOKEN
# To allow creating and duplicating pages in Stackbit Studio, as well as other
# advanced editing capabilities, specify which models describe your website
# pages and specify their "urlPath" patterns. The "urlPath" should have the same
# logic as defined in sourcebit.js
models:
landing:
type: page
urlPath: '/{slug}'
page:
type: page
urlPath: '/{slug}'
post:
type: page
urlPath: '/blog/{slug}'