File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ export interface Config {
5555 live_preview ?: LivePreview ;
5656 plugins ?: ContentstackPlugin [ ] ;
5757 fetchOptions ?: FetchOptions ;
58+ ea_headers ?: string [ ]
5859}
5960// Stack Config
6061export interface StackConfig {
Original file line number Diff line number Diff line change @@ -101,6 +101,9 @@ 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 ( ',' )
106+ }
104107 this . environment = stack_arguments [ 0 ] . environment ;
105108 return this ;
106109 } else {
You can’t perform that action at this time.
0 commit comments