bolt.diy/app/types/vercel.ts
KevIsDev 687b03ba74 feat: add Vercel integration for project deployment
This commit introduces Vercel integration, enabling users to deploy projects directly to Vercel. It includes:
- New Vercel types and store for managing connections and stats.
- A VercelConnection component for managing Vercel account connections.
- A VercelDeploymentLink component for displaying deployment links.
- API routes for handling Vercel deployments.
- Updates to the HeaderActionButtons component to support Vercel deployment.

The integration allows users to connect their Vercel accounts, view project stats, and deploy projects with ease.
2025-03-27 00:06:10 +00:00

41 lines
678 B
TypeScript

export interface VercelUser {
user: any;
id: string;
username: string;
email: string;
name: string;
avatar?: string;
}
export interface VercelProject {
createdAt: string | number | Date;
targets: any;
id: string;
name: string;
framework?: string;
latestDeployments?: Array<{
id: string;
url: string;
created: number;
state: string;
}>;
}
export interface VercelStats {
projects: VercelProject[];
totalProjects: number;
}
export interface VercelConnection {
user: VercelUser | null;
token: string;
stats?: VercelStats;
}
export interface VercelProjectInfo {
id: string;
name: string;
url: string;
chatId: string;
}