Fix vercel deployment fetching (#758)

This commit is contained in:
Will Chen
2025-07-31 16:13:46 -07:00
committed by GitHub
parent 867ea28f73
commit 0793fc299d
4 changed files with 76 additions and 55 deletions

View File

@@ -15,6 +15,7 @@ import {
CreateVercelProjectParams,
IsVercelProjectAvailableParams,
SaveVercelAccessTokenParams,
VercelDeployment,
VercelProject,
} from "../ipc_types";
import { ConnectToExistingVercelProjectParams } from "../ipc_types";
@@ -400,16 +401,7 @@ async function handleConnectToExistingProject(
async function handleGetVercelDeployments(
event: IpcMainInvokeEvent,
{ appId }: GetVercelDeploymentsParams,
): Promise<
{
uid: string;
url: string;
state: string;
createdAt: number;
target: string;
readyState: string;
}[]
> {
): Promise<VercelDeployment[]> {
try {
const settings = readSettings();
const accessToken = settings.vercelAccessToken?.value;