|
2 | 2 | #create environment file name as .env.local |
3 | 3 | #and place following configuration data. |
4 | 4 |
|
5 | | -CONTENTSTACK_API_KEY=YOUR_API_KEY |
6 | | -CONTENTSTACK_DELIVERY_TOKEN=YOUR_DELIVERY_TOKEN |
7 | | -CONTENTSTACK_ENVIRONMENT=YOUR_PUBLISHING_ENVIRONMENT |
| 5 | +CONTENTSTACK_API_KEY=your_stack_api_key |
| 6 | +CONTENTSTACK_DELIVERY_TOKEN=your_delivery_token |
| 7 | +CONTENTSTACK_ENVIRONMENT=your_environment_name |
8 | 8 |
|
9 | | -# For live preview |
10 | | -CONTENTSTACK_MANAGEMENT_TOKEN= |
11 | | -CONTENTSTACK_API_HOST=api.contentstack.io |
| 9 | +# Below config options are for enabling live preview/live edit tags for the starter app |
| 10 | + |
| 11 | +CONTENTSTACK_PREVIEW_HOST= rest-preview.contentstack.com |
| 12 | +CONTENTSTACK_PREVIEW_TOKEN= your_live_preview_token |
12 | 13 | CONTENTSTACK_APP_HOST=app.contentstack.com |
13 | | -CONTENTSTACK_LIVE_PREVIEW=true |
14 | | -CONTENTSTACK_LIVE_EDIT_TAGS=false |
| 14 | +CONTENTSTACK_LIVE_PREVIEW= true |
| 15 | +CONTENTSTACK_LIVE_EDIT_TAGS= false |
15 | 16 |
|
16 | 17 | #site-map |
17 | 18 | NEXT_PUBLIC_HOSTED_URL=http://localhost:3000 |
18 | | -# Requires host url for sitemap. Localhost:3000 is set as default value |
19 | 19 |
|
20 | | -# For Live preview default value is to true to disable live preview set CONTENTSTACK_LIVE_PREVIEW=false |
21 | | -# For live edit tags default value is set to false to enable live edit tag set CONTENTSTACK_LIVE_EDIT_TAGS=true |
22 | | -# For NA region add CONTENTSTACK_APP_HOST=app.contentstack.com |
23 | | -# For EU region add CONTENTSTACK_APP_HOST=eu-app.contentstack.com |
| 20 | +# CONTENTSTACK_API_HOST=api.contentstack.io |
| 21 | +# CONTENTSTACK_REGION=eu |
| 22 | +# CONTENTSTACK_BRANCH=main |
24 | 23 |
|
25 | | -# For setting custom host add CONTENTSTACK_API_HOST=for(NA: api.contentstack.io, EU: eu-api.contentstack.com) |
| 24 | +### NOTE: |
| 25 | + # CONTENTSTACK_API_HOST- For setting custom api host for contentstack sdk |
| 26 | + # CONTENTSTACK_REGION- For setting custom region for contentstack sdk default is us |
| 27 | + # CONTENTSTACK_BRANCH- For setting custom branch for contentstack sdk default is main |
26 | 28 |
|
27 | | -# For setting branch add CONTENTSTACK_BRANCH=(Optional for default branch(main)) Eg- develop |
28 | | -# For setting region add CONTENTSTACK_REGION=(Optional for US region) Eg- eu |
| 29 | + # Setting Live Preview URL's |
| 30 | + # CONTENTSTACK_PREVIEW_HOST- For eu region use eu-rest-preview.contentstack.com/azure-na-rest-preview.contentstack.com/azure-eu-rest-preview.contentstack.com |
0 commit comments