Skip to content

Commit 608841a

Browse files
authored
Hydrogen demo: tweak Stackbit config (#10)
1 parent 9258237 commit 608841a

File tree

1 file changed

+8
-19
lines changed

1 file changed

+8
-19
lines changed
Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
1-
# The stackbit.yaml file lets you define the characteristic of your website
2-
# needed to make your theme, or project, work with Stackbit. For more info about
3-
# stackbit.yaml configuration visit https://docs.stackbit.com/reference/stackbit-yaml/
41
stackbitVersion: ~0.5.0
5-
ssgName: custom
62
cmsName: contentful
73
nodeVersion: '16'
8-
devCommand: echo Starting && APP_PORT={PORT} npm run dev-no-window
9-
10-
__unsafe_internal_stackbitRunnerOptions:
11-
displayName: Hydrogen
12-
patterns:
13-
doneStart: ['Local: http']
144

15-
# The "buildCommand" and the "publishDir" properties are used to configure the
16-
# serverless deployment platform when Stackbit creates a new site from this theme.
17-
buildCommand: npm run build
18-
publishDir: out
5+
ssgName: custom
6+
devCommand: echo Starting && APP_PORT={PORT} npm run dev-no-window
7+
experimental:
8+
ssg:
9+
name: Hydrogen
10+
logPatterns:
11+
up: 'Local: http'
1912

20-
# The "import" object defines how Stackbit should provision Contentful when
21-
# creating a new site from this theme via https://app.stackbit.com/create.
2213
import:
2314
type: contentful
2415
contentFile: contentful/export.json
@@ -27,13 +18,11 @@ import:
2718
spaceIdEnvVar: CONTENTFUL_SPACE_ID
2819
deliveryTokenEnvVar: CONTENTFUL_DELIVERY_TOKEN
2920

30-
styleObjectModelName: ThemeStyle
31-
3221
modelsSource:
3322
type: contentful
3423

3524
# These models are merged with Contentful models
3625
models:
3726
PostLayout:
3827
type: page
39-
urlPath: '/journal/{slug}'
28+
urlPath: '/journal/{slug}'

0 commit comments

Comments
 (0)