Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/contentstack-export/src/export/modules/stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,17 @@ export default class ExportStack extends BaseClass {

async start(): Promise<void> {
if (isAuthenticated()) {
await this.exportStackSettings();
const stackData = await this.getStack();
if (stackData?.org_uid) {
this.exportConfig.org_uid = stackData.org_uid;
this.exportConfig.sourceStackName = stackData.name;
}
}
if (this.exportConfig.management_token) {
log(this.exportConfig, 'Skipping stack settings export: Operation is not supported when using a management token.', 'info');
} else {
await this.exportStackSettings();
}
if (!this.exportConfig.preserveStackVersion && !this.exportConfig.hasOwnProperty('master_locale')) {
//fetch master locale details
return this.getLocales();
Expand Down
Loading