mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-05-07 05:34:40 +00:00
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.
41 lines
678 B
TypeScript
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;
|
|
}
|