Skip to content

Commit d19195a

Browse files
committed
fix: config change from early_access_headers to early_access
1 parent 6f5eb27 commit d19195a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export interface Config {
5555
live_preview?: LivePreview;
5656
plugins?: ContentstackPlugin[];
5757
fetchOptions?: FetchOptions;
58-
early_access_headers?: string[]
58+
early_access?: string[]
5959
}
6060
// Stack Config
6161
export interface StackConfig {

src/core/stack.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ export default class Stack {
101101
if (typeof stack_arguments[0].branch === "string" && stack_arguments[0].branch !== undefined) {
102102
this.headers.branch = stack_arguments[0].branch
103103
}
104-
if (typeof stack_arguments[0].ea_headers == "object" && Array.isArray(stack_arguments[0].ea_headers) && stack_arguments[0].ea_headers.length > 0) {
105-
this.headers['x-header-ea'] = stack_arguments[0].ea_headers.join(',')
104+
if (typeof stack_arguments[0].early_access == "object" && Array.isArray(stack_arguments[0].early_access) && stack_arguments[0].early_access.length > 0) {
105+
this.headers['x-header-ea'] = stack_arguments[0].early_access.join(',')
106106
}
107107
this.environment = stack_arguments[0].environment;
108108
return this;

0 commit comments

Comments
 (0)