Skip to content

Commit 2d932d5

Browse files
authored
Merge pull request #31 from contentstack/fix/TSOND-593
TSOND-594 | Added VB key in next config, updated Readme & resolved snyk issue for eslint version
2 parents b4887d6 + dd1ee6d commit 2d932d5

4 files changed

Lines changed: 217 additions & 186 deletions

File tree

README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,27 @@ You can start editing the page by modifying `app/[locale]/page.tsx`. The page au
2828

2929
[Compass Starter Stack Content Repo](https://github.com/contentstack/compass-starter-stack)
3030

31-
## Tutorial
31+
### Note : Contentstack stack must have English as Master Language
3232

33-
We have created an in-depth tutorial on how you can create a starter website using the Contentstack's Node.js SDK and fetch its content using Contentstack.
33+
To import this content to your stack, perform the following steps:
3434

35-
[Build a Compass Starter Website with NextJS and Contentstack](https://www.contentstack.com/docs/developers/sample-apps/)
35+
1. Install the CLI by running the following command in your terminal:
36+
37+
```npm i -g @contentstack/cli@1.28.1```
38+
39+
2. By default, CLI uses the North America region. To use the Europe region, run this command in your terminal:
40+
41+
```csdx config:set:region EU```
42+
43+
3. Next, log in to your Contentstack account via CLI:
44+
45+
```csdx auth:login```
46+
47+
4. Create Compass Starter stack using CLI bootstrap command
48+
49+
```csdx cm:bootstrap --app-name compass-app --project-dir <project-dir> --org <org-uid> -n <stack-name>```
50+
51+
Refer to the [Bootstrap command documentation](https://www.contentstack.com/docs/developers/cli/bootstrap-starter-apps) to learn more.
3652

3753
## Documentation
3854

next.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ const nextConfig = {
2424
CONTENTSTACK_PERSONALIZE_PROJECT_UID: process.env.CONTENTSTACK_PERSONALIZE_PROJECT_UID,
2525
CONTENTSTACK_AB_EXPERIENCE_ID: process.env.CONTENTSTACK_AB_EXPERIENCE_ID || '1',
2626
CONTENTSTACK_AB_LANDING_PAGE_PATH: process.env.CONTENTSTACK_AB_LANDING_PAGE_PATH,
27-
CONTENTSTACK_AB_PRIMARY_EVENT: process.env.CONTENTSTACK_AB_PRIMARY_EVENT || 'Clicked'
27+
CONTENTSTACK_AB_PRIMARY_EVENT: process.env.CONTENTSTACK_AB_PRIMARY_EVENT || 'Clicked',
28+
29+
CONTENTSTACK_VISUAL_BUILDER_MODE: process.env.CONTENTSTACK_VISUAL_BUILDER_MODE ? process.env.CONTENTSTACK_VISUAL_BUILDER_MODE : 'builder' // mode: builder | preview
2830
}
2931
}
3032

0 commit comments

Comments
 (0)