mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Add support for multiple deployment providers
This commit is contained in:
17 files changed
+1367
-145
No files matched your search
@@ -0,0 +1,26 @@
|
||||
import { createContext } from 'react';
|
||||
|
||||
export interface DeployProvider {
|
||||
id: string;
|
||||
type: 'shakespeare' | 'netlify' | 'vercel';
|
||||
apiKey?: string; // Not used for Shakespeare Deploy
|
||||
siteId?: string; // For Netlify
|
||||
projectId?: string; // For Vercel
|
||||
teamId?: string; // For Vercel
|
||||
}
|
||||
|
||||
export interface DeploySettings {
|
||||
providers: DeployProvider[];
|
||||
defaultProviderId?: string;
|
||||
}
|
||||
|
||||
export interface DeploySettingsContextType {
|
||||
settings: DeploySettings;
|
||||
updateSettings: (settings: Partial<DeploySettings>) => void;
|
||||
setProvider: (provider: DeployProvider) => void;
|
||||
removeProvider: (id: string) => void;
|
||||
setProviders: (providers: DeployProvider[]) => void;
|
||||
isConfigured: boolean;
|
||||
}
|
||||
|
||||
export const DeploySettingsContext = createContext<DeploySettingsContextType | undefined>(undefined);
|
||||
Reference in new issue
Block a user