From 97a56befbab5d465dcdaea106e80618692f137ce Mon Sep 17 00:00:00 2001 From: Elad Rosenheim Date: Sun, 7 Aug 2022 21:41:20 +0300 Subject: [PATCH 1/2] Update stackbit.yaml --- hydrogen-contentful-demo-store/stackbit.yaml | 29 +++++++------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/hydrogen-contentful-demo-store/stackbit.yaml b/hydrogen-contentful-demo-store/stackbit.yaml index 620278f..097890c 100644 --- a/hydrogen-contentful-demo-store/stackbit.yaml +++ b/hydrogen-contentful-demo-store/stackbit.yaml @@ -1,24 +1,17 @@ -# 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' + passthrough: + - '/vite-hmr/**' -# 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 @@ -27,8 +20,6 @@ import: spaceIdEnvVar: CONTENTFUL_SPACE_ID deliveryTokenEnvVar: CONTENTFUL_DELIVERY_TOKEN -styleObjectModelName: ThemeStyle - modelsSource: type: contentful @@ -36,4 +27,4 @@ modelsSource: models: PostLayout: type: page - urlPath: '/journal/{slug}' \ No newline at end of file + urlPath: '/journal/{slug}' From 8d50a48c81afbfb33cb789c82e9f83397fab46f5 Mon Sep 17 00:00:00 2001 From: Elad Rosenheim Date: Sun, 7 Aug 2022 21:42:35 +0300 Subject: [PATCH 2/2] Update stackbit.yaml --- hydrogen-contentful-demo-store/stackbit.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/hydrogen-contentful-demo-store/stackbit.yaml b/hydrogen-contentful-demo-store/stackbit.yaml index 097890c..92ed85c 100644 --- a/hydrogen-contentful-demo-store/stackbit.yaml +++ b/hydrogen-contentful-demo-store/stackbit.yaml @@ -9,8 +9,6 @@ experimental: name: Hydrogen logPatterns: up: 'Local: http' - passthrough: - - '/vite-hmr/**' import: type: contentful