File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,20 @@ const { createHash } = require('crypto');
1111
1212// Configuration
1313const CHUNK_SIZE = 90 * 1024 * 1024 ; // 90MB chunks
14- const UPLOAD_ENDPOINT = process . env . UPLOAD_URL + "/update/upload.php" ;
1514const API_KEY = process . env . UPLOAD_API_KEY ;
1615
1716if ( ! 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
2329const args = process . argv . slice ( 2 ) ;
2430const uploadDirArg = args . find ( arg => arg . startsWith ( '--dir=' ) ) ;
You can’t perform that action at this time.
0 commit comments