File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
6161export interface StackConfig {
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments