Skip to content

Commit 9d81617

Browse files
committed
fix: 🐛 same management token in live preview for different stack objects fixed
1 parent 5b39b5f commit 9d81617

File tree

10 files changed

+14858
-38
lines changed

10 files changed

+14858
-38
lines changed

.talismanrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
threshold: medium
22
fileignoreconfig:
33
- filename: package-lock.json
4-
checksum: 1e966081577191b52e4ac7fa113c9563d5e120043a3e399dec06e3943c4d81bc
4+
checksum: 0dbf56c1fd0eda1145d69b718de5b7d419650556492851c343fab05867e233a2
5+
version: ""

examples/PromiseError/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const Stack = Contentstack.Stack(
4040
Stack.setHost('api.contentstack.io');
4141

4242
const Query = Stack
43-
.ContentType(process.env.CONTENTSTACK_CONTENT_TYPE)
43+
.ContentType(process.env.CONTENT_TYPE)
4444
.Query({})
4545
.language("en-us")
4646
.includeCount();

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export class Stack {
119119
cachePolicy: CachePolicy;
120120
config: StackConfig;
121121
fetchOptions: any;
122+
live_preview: { enable: boolean, host: string, management_token: string }
122123

123124
ContentType(uid: string): ContentType;
124125
Assets(uid: string): Asset;

0 commit comments

Comments
 (0)