-
Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy path.env.local.sample
More file actions
29 lines (23 loc) · 1.19 KB
/
.env.local.sample
File metadata and controls
29 lines (23 loc) · 1.19 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
# This is a settings file for our application.
# Contentstack — use NEXT_PUBLIC_* only (available in browser + server via Next.js).
NEXT_PUBLIC_CONTENTSTACK_API_KEY=your_stack_api_key
NEXT_PUBLIC_CONTENTSTACK_DELIVERY_TOKEN=your_delivery_token
NEXT_PUBLIC_CONTENTSTACK_ENVIRONMENT=your_environment_name
# Live Preview
NEXT_PUBLIC_CONTENTSTACK_PREVIEW_HOST=rest-preview.contentstack.com
NEXT_PUBLIC_CONTENTSTACK_PREVIEW_TOKEN=your_live_preview_token
NEXT_PUBLIC_CONTENTSTACK_APP_HOST=app.contentstack.com
NEXT_PUBLIC_CONTENTSTACK_LIVE_PREVIEW=true
NEXT_PUBLIC_CONTENTSTACK_LIVE_EDIT_TAGS=false
# Optional (defaults in next.config.js if unset)
# NEXT_PUBLIC_CONTENTSTACK_API_HOST=api.contentstack.io
# NEXT_PUBLIC_CONTENTSTACK_REGION=us
# NEXT_PUBLIC_CONTENTSTACK_BRANCH=main
# Site map
NEXT_PUBLIC_HOSTED_URL=http://localhost:3000
# Notes:
# - NEXT_PUBLIC_CONTENTSTACK_API_HOST: custom Contentstack API host if needed.
# - NEXT_PUBLIC_CONTENTSTACK_REGION: default is us.
# - NEXT_PUBLIC_CONTENTSTACK_BRANCH: default is main.
# - NEXT_PUBLIC_CONTENTSTACK_PREVIEW_HOST: EU example — eu-rest-preview.contentstack.com
# - Delivery + preview tokens are exposed in the client bundle; use preview-scoped tokens only.