-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy path.env.sample
More file actions
31 lines (23 loc) · 1.17 KB
/
.env.sample
File metadata and controls
31 lines (23 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# create a file name it as .env.development for gatsby develop
# create a file name it as .env.production for gatsby build
# copy & paste below content to the newly created env file.
CONTENTSTACK_API_KEY= YOUR_API_KEY
CONTENTSTACK_DELIVERY_TOKEN= YOUR_DELIVERY_TOKEN
CONTENTSTACK_ENVIRONMENT= YOUR_PUBLISHING_ENVIRONMENT
# For live preview
CONTENTSTACK_PREVIEW_TOKEN=YOUR_PREVIEW_TOKEN
CONTENTSTACK_API_HOST=api.contentstack.io
CONTENTSTACK_APP_HOST=app.contentstack.com
CONTENTSTACK_PREVIEW_HOST=YOUR_PREVIEW_HOST #rest-preview.contentstack.com
CONTENTSTACK_LIVE_PREVIEW=true
CONTENTSTACK_LIVE_EDIT_TAGS=false
#sitemap generation
#hosted site url example: https://contentstack-gatsby-starter-app.vercel.app/
#CONTENTSTACK_HOSTED_URL =http://localhost:3000
# For enabling live editing tags for this project set CONTENTSTACK_LIVE_PREVIEW=true by default it is set to false
# For EU region add CONTENTSTACK_APP_HOST=eu-app.contentstack.com
# For EU region add CONTENTSTACK_API_HOST=eu-api.contentstack.com
# By default branch=main, if a branch is not provided
CONTENTSTACK_BRANCH=your_branch_name
# By default region=us, if a region is not provided
CONTENTSTACK_REGION=your_region_name