Skip to content

Commit 001dc05

Browse files
Update uploader.js
1 parent 82e88a7 commit 001dc05

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/uploader.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,20 @@ const { createHash } = require('crypto');
1111

1212
// Configuration
1313
const CHUNK_SIZE = 90 * 1024 * 1024; // 90MB chunks
14-
const UPLOAD_ENDPOINT = process.env.UPLOAD_URL+"/update/upload.php";
1514
const API_KEY = process.env.UPLOAD_API_KEY;
1615

1716
if (!API_KEY) {
1817
console.error('❌ UPLOAD_API_KEY environment variable is required');
1918
process.exit(1);
2019
}
2120

21+
if (!process.env.UPLOAD_URL) {
22+
console.error('❌ UPLOAD_URL environment variable is required');
23+
process.exit(1);
24+
}
25+
26+
const UPLOAD_ENDPOINT = process.env.UPLOAD_URL+'/update/upload.php';
27+
2228
// Parse command line arguments
2329
const args = process.argv.slice(2);
2430
const uploadDirArg = args.find(arg => arg.startsWith('--dir='));

0 commit comments

Comments
 (0)