Skip to content

Commit

Permalink
Merge pull request #27 from contentstack/fix/variant-entry-import-fix
Browse files Browse the repository at this point in the history
Fix: Headers added
  • Loading branch information
antonyagustine authored Apr 25, 2024
2 parents 514edb7 + eb388d9 commit 581dfe1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/contentstack-variants/src/import/variant-entries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ export default class VariantEntries extends VariantAdapter<VariantHttpClient<Imp
httpClient: true,
baseURL: config.host,
Adapter: VariantHttpClient<ImportConfig>,
headers: {
api_key: config.apiKey,
branch: config.branchName,
authtoken: config.auth_token,
organization_uid: config.org_uid,
'X-Project-Uid': config.modules.personalization.project_id,
},
};
super(Object.assign(omit(config, ['helpers']), conf));
this.entriesMapperPath = resolve(config.backupDir, 'mapper', 'entries');
Expand Down

0 comments on commit 581dfe1

Please sign in to comment.