From ce0d34084d4ab13fa6f6b5fb69150982b93f848c Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sun, 15 May 2022 11:00:38 +0800 Subject: [PATCH] vercel update version --- platform/Vercel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/Vercel.php b/platform/Vercel.php index 1fea82d..9b9c66b 100644 --- a/platform/Vercel.php +++ b/platform/Vercel.php @@ -316,7 +316,7 @@ function VercelUpdate($appId, $token, $sourcePath = "") $data["target"] = "production"; $data["routes"][0]["src"] = "/(.*)"; $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]; //echo $sourcePath . "
"; getEachFiles($file, $sourcePath); @@ -432,7 +432,7 @@ function WaitFunction($deployid = '') { } $header["Authorization"] = "Bearer " . getConfig('APIKey'); $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); if ($response['stat']==200) { $result = json_decode($response['body'], true);