mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
feat: add one-click netlify deployment
This commit is contained in:
@@ -17,7 +17,11 @@ export interface StartAction extends BaseAction {
|
||||
type: 'start';
|
||||
}
|
||||
|
||||
export type BoltAction = FileAction | ShellAction | StartAction;
|
||||
export interface BuildAction extends BaseAction {
|
||||
type: 'build';
|
||||
}
|
||||
|
||||
export type BoltAction = FileAction | ShellAction | StartAction | BuildAction;
|
||||
|
||||
export type BoltActionData = BoltAction | BaseAction;
|
||||
|
||||
|
||||
41
app/types/netlify.ts
Normal file
41
app/types/netlify.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
export interface NetlifySite {
|
||||
id: string;
|
||||
name: string;
|
||||
url: string;
|
||||
admin_url: string;
|
||||
build_settings: {
|
||||
provider: string;
|
||||
repo_url: string;
|
||||
cmd: string;
|
||||
};
|
||||
published_deploy: {
|
||||
published_at: string;
|
||||
deploy_time: number;
|
||||
};
|
||||
}
|
||||
|
||||
export interface NetlifyUser {
|
||||
id: string;
|
||||
slug: string;
|
||||
email: string;
|
||||
full_name: string;
|
||||
avatar_url: string;
|
||||
}
|
||||
|
||||
export interface NetlifyStats {
|
||||
sites: NetlifySite[];
|
||||
totalSites: number;
|
||||
}
|
||||
|
||||
export interface NetlifyConnection {
|
||||
user: NetlifyUser | null;
|
||||
token: string;
|
||||
stats?: NetlifyStats;
|
||||
}
|
||||
|
||||
export interface NetlifySiteInfo {
|
||||
id: string;
|
||||
name: string;
|
||||
url: string;
|
||||
chatId: string;
|
||||
}
|
||||
Reference in New Issue
Block a user