vercel update version
parent
a81c94bad3
commit
ce0d34084d
|
@ -316,7 +316,7 @@ function VercelUpdate($appId, $token, $sourcePath = "")
|
||||||
$data["target"] = "production";
|
$data["target"] = "production";
|
||||||
$data["routes"][0]["src"] = "/(.*)";
|
$data["routes"][0]["src"] = "/(.*)";
|
||||||
$data["routes"][0]["dest"] = "/api/index.php";
|
$data["routes"][0]["dest"] = "/api/index.php";
|
||||||
$data["functions"]["api/index.php"]["runtime"] = "vercel-php@0.4.0";
|
$data["functions"]["api/index.php"]["runtime"] = "vercel-php@0.5.1";
|
||||||
if ($sourcePath=="") $sourcePath = splitlast(splitlast(__DIR__, "/")[0], "/")[0];
|
if ($sourcePath=="") $sourcePath = splitlast(splitlast(__DIR__, "/")[0], "/")[0];
|
||||||
//echo $sourcePath . "<br>";
|
//echo $sourcePath . "<br>";
|
||||||
getEachFiles($file, $sourcePath);
|
getEachFiles($file, $sourcePath);
|
||||||
|
@ -432,7 +432,7 @@ function WaitFunction($deployid = '') {
|
||||||
}
|
}
|
||||||
$header["Authorization"] = "Bearer " . getConfig('APIKey');
|
$header["Authorization"] = "Bearer " . getConfig('APIKey');
|
||||||
$header["Content-Type"] = "application/json";
|
$header["Content-Type"] = "application/json";
|
||||||
$url = "https://api.vercel.com/v11/deployments/" . $deployid;
|
$url = "https://api.vercel.com/v13/deployments/" . $deployid;
|
||||||
$response = curl("GET", $url, "", $header);
|
$response = curl("GET", $url, "", $header);
|
||||||
if ($response['stat']==200) {
|
if ($response['stat']==200) {
|
||||||
$result = json_decode($response['body'], true);
|
$result = json_decode($response['body'], true);
|
||||||
|
|
Loading…
Reference in New Issue