Skip to content

Commit c66bad7

Browse files
fix:live edit redirect
Signed-off-by: Amitkanswal <amit.kanswal@contentstack.com>
1 parent c700a87 commit c66bad7

4 files changed

Lines changed: 102 additions & 95 deletions

File tree

.env.example

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
1-
#create environment file name as .env
2-
#and place following configuration data.
3-
1+
# This is a settings file for our application.
42

3+
# Contentstack is the tool we use to manage our website's content.
4+
# You need to replace 'your_stack_api_key', 'your_delivery_token', and 'your_environment_name' with the actual information.
55
REACT_APP_CONTENTSTACK_API_KEY=your_stack_api_key
66
REACT_APP_CONTENTSTACK_DELIVERY_TOKEN=your_delivery_token
77
REACT_APP_CONTENTSTACK_ENVIRONMENT=your_environment_name
88

9-
# Below config options are for enabling live preview/live edit tags for the starter app
10-
9+
# Live Preview lets us see changes before they are shown on the website.
10+
# Replace 'your_live_preview_token' with the actual information.
1111
REACT_APP_CONTENTSTACK_PREVIEW_HOST=rest-preview.contentstack.com
1212
REACT_APP_CONTENTSTACK_PREVIEW_TOKEN=your_live_preview_token
1313
REACT_APP_CONTENTSTACK_APP_HOST=app.contentstack.com
1414
REACT_APP_CONTENTSTACK_LIVE_PREVIEW=true
1515
REACT_APP_CONTENTSTACK_LIVE_EDIT_TAGS=false
1616

17-
17+
# These are extra settings. You can remove the '#' at the start of the line and fill these if needed.
1818
# REACT_APP_CONTENTSTACK_API_HOST= api.contentstack.io
19-
# REACT_APP_CONTENTSTACK_REGION=eu
19+
# REACT_APP_CONTENTSTACK_REGION=us
2020
# REACT_APP_CONTENTSTACK_BRANCH=main
2121

22-
### NOTE:
23-
# REACT_APP_CONTENTSTACK_API_HOST- For setting custom api host for contentstack sdk
24-
# REACT_APP_CONTENTSTACK_REGION- For setting custom region for contentstack sdk default is us
25-
# REACT_APP_CONTENTSTACK_BRANCH- For setting custom branch for contentstack sdk default is main
26-
27-
# Setting Live Preview URL's
28-
# REACT_APP_CONTENTSTACK_PREVIEW_HOST- For eu region use eu-rest-preview.contentstack.com/azure-na-rest-preview.contentstack.com/azure-eu-rest-preview.contentstack.com
22+
# Notes:
23+
# - REACT_APP_CONTENTSTACK_API_HOST: This is for setting a custom address for the Contentstack tool.
24+
# - REACT_APP_CONTENTSTACK_REGION: This is for setting a custom region for the Contentstack tool (default is 'us').
25+
# - REACT_APP_CONTENTSTACK_BRANCH: This is for setting a custom branch for the Contentstack tool (default is 'main').
26+
# - REACT_APP_CONTENTSTACK_PREVIEW_HOST: If you're in the EU just append "eu-" to "rest-preview.contentstack.com"
27+
# - example eu-rest-preview.contentstack.com

package-lock.json

Lines changed: 69 additions & 70 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
{
22
"name": "contentstack-react-starter-app",
33
"description": "A starter app for Contentstack and React",
4-
"version": "2.0.5",
4+
"version": "2.0.6",
55
"private": true,
66
"author": "Contentstack",
77
"dependencies": {
88
"@contentstack/live-preview-utils": "^1.4.0",
9-
"@contentstack/utils": "^1.3.1",
10-
"@textea/json-viewer": "^3.3.0",
11-
"@types/react": "^18.2.48",
9+
"@contentstack/utils": "^1.3.2",
10+
"@textea/json-viewer": "^3.4.0",
11+
"@types/react": "^18.2.57",
12+
"caniuse-lite": "^1.0.30001589",
1213
"contentstack": "^3.19.0",
1314
"html-react-parser": "^3.0.16",
1415
"moment": "^2.30.1",
1516
"nth-check": "^2.1.1",
1617
"react": "^18.2.0",
1718
"react-dom": "^18.2.0",
18-
"react-loading-skeleton": "^3.3.1",
19-
"react-router-dom": "^6.21.2",
19+
"react-loading-skeleton": "^3.4.0",
20+
"react-router-dom": "^6.22.1",
2021
"react-script": "^2.0.5",
2122
"typescript": "^4.9.5",
2223
"web-vitals": "^2.1.4"
@@ -53,9 +54,9 @@
5354
},
5455
"license": "MIT",
5556
"devDependencies": {
56-
"@types/react-dom": "^18.2.18",
57+
"@types/react-dom": "^18.2.19",
5758
"eslint": "^8.56.0",
5859
"eslint-plugin-react": "^7.33.2",
5960
"react-scripts": "^5.0.1"
6061
}
61-
}
62+
}

0 commit comments

Comments
 (0)