Skip to content

Commit e8b8e34

Browse files
authored
fix: deploy marketplace (#286)
1 parent 31ccf44 commit e8b8e34

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

scripts/deploy-marketplace.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,19 @@ async function main() {
127127
process.exit(1);
128128
}
129129

130-
console.log('🚀 Starting marketplace update...');
131-
132-
// update marketplace
133-
await fetch(`${process.env.MARKETPLACE_BASE_URL}/api/admin/refresh`, {
134-
method: 'GET',
135-
headers: {
136-
Authorization: process.env.MARKETPLACE_AUTH_TOKEN
137-
}
138-
});
130+
try {
131+
console.log('🚀 Starting marketplace update...');
132+
await fetch(`${process.env.MARKETPLACE_BASE_URL}/api/admin/refresh`, {
133+
method: 'GET',
134+
headers: {
135+
Authorization: process.env.MARKETPLACE_AUTH_TOKEN
136+
}
137+
});
138+
console.log('✅ Marketplace updated successfully');
139+
} catch (error) {
140+
console.error('❌ Marketplace update failed:');
141+
console.error(error);
142+
}
139143
}
140144

141145
if (import.meta.main) {

0 commit comments

Comments
 (0)