We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82e88a7 commit 001dc05Copy full SHA for 001dc05
1 file changed
scripts/uploader.js
@@ -11,14 +11,20 @@ const { createHash } = require('crypto');
11
12
// Configuration
13
const CHUNK_SIZE = 90 * 1024 * 1024; // 90MB chunks
14
-const UPLOAD_ENDPOINT = process.env.UPLOAD_URL+"/update/upload.php";
15
const API_KEY = process.env.UPLOAD_API_KEY;
16
17
if (!API_KEY) {
18
console.error('❌ UPLOAD_API_KEY environment variable is required');
19
process.exit(1);
20
}
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
28
// Parse command line arguments
29
const args = process.argv.slice(2);
30
const uploadDirArg = args.find(arg => arg.startsWith('--dir='));
0 commit comments