Skip to content

Commit

Permalink
fix: check preview url in sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
bucurdavid committed Mar 8, 2024
1 parent a212e1f commit 58904ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/nft-minter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ export class NftMinter extends Minter {

// deep validate all mandatory URLs
try {
await checkUrlIsUp(dataPreviewUrl, [200]);
await checkUrlIsUp(dataMarshalUrl + '/health-check', [200]);
} catch (error) {
throw error;
Expand Down
1 change: 1 addition & 0 deletions src/sft-minter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ export class SftMinter extends Minter {

// deep validate all mandatory URLs
try {
await checkUrlIsUp(dataPreviewUrl, [200]);
await checkUrlIsUp(dataMarshalUrl + '/health-check', [200]);
} catch (error) {
throw error;
Expand Down

0 comments on commit 58904ab

Please sign in to comment.