diff --git a/stackbit.config.ts b/stackbit.config.ts new file mode 100644 index 000000000000..0c13279911ab --- /dev/null +++ b/stackbit.config.ts @@ -0,0 +1,20 @@ +import { ContentstackContentSource } from '@stackbit/cms-contentstack'; + +import { defineStackbitConfig } from '@stackbit/types'; + +export default defineStackbitConfig({ + "stackbitVersion": "~0.6.0", + "nodeVersion": "18", + "ssgName": "nextjs", + "contentSources": [ + new ContentstackContentSource({ + apiKey: process.env.CONTENTSTACK_API_KEY!, + managementToken: process.env.CONTENTSTACK_MANAGEMENT_TOKEN!, + authtoken: process.env.CONTENTSTACK_AUTHTOKEN, + branch: process.env.CONTENTSTACK_BRANCH!, + publishEnvironmentName: process.env.CONTENTSTACK_PUBLISH_ENV || 'production', + skipFetchOnStartIfCache: true + }), + ], + "postInstallCommand": "npm i --no-save @stackbit/types @stackbit/cms-contentstack" +}) \ No newline at end of file