Skip to content

Commit ab2f60e

Browse files
committed
Merge branch 'horizon' of github.com:graphprotocol/contracts into horizon
2 parents c0ccb8e + 79f996c commit ab2f60e

File tree

1 file changed

+6
-0
lines changed
  • packages/token-distribution/scripts

1 file changed

+6
-0
lines changed

packages/token-distribution/scripts/build.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ const fs = require('fs')
1616
const { readdir } = require('fs/promises')
1717
const path = require('path')
1818

19+
// Check for STUDIO_API_KEY
20+
if (!process.env.STUDIO_API_KEY) {
21+
console.log('Warning: STUDIO_API_KEY is not set. Skipping build steps. Some functionality may be limited.')
22+
process.exit(0)
23+
}
24+
1925
// Get the directory name
2026
const rootDir = path.resolve(__dirname, '..')
2127

0 commit comments

Comments
 (0)