Skip to content

Commit b73cb37

Browse files
author
alexmonroe1307@gmail.com
committed
Add stackbit.config.ts
1 parent 259c714 commit b73cb37

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

stackbit.config.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { ContentstackContentSource } from '@stackbit/cms-contentstack';
2+
3+
import { defineStackbitConfig } from '@stackbit/types';
4+
5+
export default defineStackbitConfig({
6+
"stackbitVersion": "~0.6.0",
7+
"nodeVersion": "18",
8+
"ssgName": "nextjs",
9+
"contentSources": [
10+
new ContentstackContentSource({
11+
apiKey: process.env.CONTENTSTACK_API_KEY!,
12+
managementToken: process.env.CONTENTSTACK_MANAGEMENT_TOKEN!,
13+
authtoken: process.env.CONTENTSTACK_AUTHTOKEN,
14+
branch: process.env.CONTENTSTACK_BRANCH!,
15+
publishEnvironmentName: process.env.CONTENTSTACK_PUBLISH_ENV || 'production',
16+
skipFetchOnStartIfCache: true
17+
}),
18+
],
19+
"postInstallCommand": "npm i --no-save @stackbit/types @stackbit/cms-contentstack"
20+
})

0 commit comments

Comments
 (0)