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
22 changes: 13 additions & 9 deletions scripts/deploy-marketplace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,19 @@ async function main() {
process.exit(1);
}

console.log('🚀 Starting marketplace update...');

// update marketplace
await fetch(`${process.env.MARKETPLACE_BASE_URL}/api/admin/refresh`, {
method: 'GET',
headers: {
Authorization: process.env.MARKETPLACE_AUTH_TOKEN
}
});
try {
console.log('🚀 Starting marketplace update...');
await fetch(`${process.env.MARKETPLACE_BASE_URL}/api/admin/refresh`, {
method: 'GET',
headers: {
Authorization: process.env.MARKETPLACE_AUTH_TOKEN
}
});
console.log('✅ Marketplace updated successfully');
} catch (error) {
console.error('❌ Marketplace update failed:');
console.error(error);
}
}

if (import.meta.main) {
Expand Down