Skip to content

Hydrogen demo: tweak Stackbit config #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 8 additions & 19 deletions hydrogen-contentful-demo-store/stackbit.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
# 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://docs.stackbit.com/reference/stackbit-yaml/
stackbitVersion: ~0.5.0
ssgName: custom
cmsName: contentful
nodeVersion: '16'
devCommand: echo Starting && APP_PORT={PORT} npm run dev-no-window

__unsafe_internal_stackbitRunnerOptions:
displayName: Hydrogen
patterns:
doneStart: ['Local: http']

# 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: out
ssgName: custom
devCommand: echo Starting && APP_PORT={PORT} npm run dev-no-window
experimental:
ssg:
name: Hydrogen
logPatterns:
up: 'Local: http'

# 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
Expand All @@ -27,13 +18,11 @@ import:
spaceIdEnvVar: CONTENTFUL_SPACE_ID
deliveryTokenEnvVar: CONTENTFUL_DELIVERY_TOKEN

styleObjectModelName: ThemeStyle

modelsSource:
type: contentful

# These models are merged with Contentful models
models:
PostLayout:
type: page
urlPath: '/journal/{slug}'
urlPath: '/journal/{slug}'