mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Deployment providers refactoring
This commit is contained in:
7 files changed
+168
-348
No files matched your search
@@ -74,3 +74,19 @@ export interface DenoDeployConfig {
|
||||
projectName?: string;
|
||||
corsProxy?: string;
|
||||
}
|
||||
|
||||
export interface PresetDeployProvider {
|
||||
id: string;
|
||||
type: 'shakespeare' | 'netlify' | 'vercel' | 'nsite' | 'cloudflare' | 'deno';
|
||||
name: string;
|
||||
description: string;
|
||||
baseURL?: string;
|
||||
requiresNostr?: boolean;
|
||||
apiKeyLabel?: string;
|
||||
apiKeyURL?: string;
|
||||
accountIdLabel?: string;
|
||||
accountIdURL?: string;
|
||||
organizationIdLabel?: string;
|
||||
organizationIdURL?: string;
|
||||
proxy?: boolean;
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
import type { PresetDeployProvider } from './deploy/types';
|
||||
|
||||
export const PRESET_DEPLOY_PROVIDERS: PresetDeployProvider[] = [
|
||||
{
|
||||
id: 'shakespeare',
|
||||
type: 'shakespeare',
|
||||
name: 'Shakespeare Deploy',
|
||||
description: 'Deploy to Shakespeare hosting with Nostr authentication',
|
||||
baseURL: 'https://shakespeare.diy',
|
||||
requiresNostr: true,
|
||||
},
|
||||
{
|
||||
id: 'nsite',
|
||||
type: 'nsite',
|
||||
name: 'nsite',
|
||||
description: 'Deploy to Nostr as a static website',
|
||||
// No baseURL for nsite - uses Rocket icon fallback
|
||||
},
|
||||
{
|
||||
id: 'netlify',
|
||||
type: 'netlify',
|
||||
name: 'Netlify',
|
||||
description: 'Deploy to Netlify',
|
||||
baseURL: 'https://api.netlify.com/api/v1',
|
||||
apiKeyLabel: 'Personal Access Token',
|
||||
apiKeyURL: 'https://app.netlify.com/user/applications#personal-access-tokens',
|
||||
proxy: true,
|
||||
},
|
||||
{
|
||||
id: 'vercel',
|
||||
type: 'vercel',
|
||||
name: 'Vercel',
|
||||
description: 'Deploy to Vercel',
|
||||
baseURL: 'https://api.vercel.com',
|
||||
apiKeyLabel: 'Access Token',
|
||||
apiKeyURL: 'https://vercel.com/account/tokens',
|
||||
proxy: true,
|
||||
},
|
||||
{
|
||||
id: 'cloudflare',
|
||||
type: 'cloudflare',
|
||||
name: 'Cloudflare',
|
||||
description: 'Deploy to Cloudflare Workers',
|
||||
baseURL: 'https://api.cloudflare.com/client/v4',
|
||||
apiKeyLabel: 'API Token',
|
||||
apiKeyURL: 'https://dash.cloudflare.com/profile/api-tokens',
|
||||
accountIdLabel: 'Account ID',
|
||||
accountIdURL: 'https://developers.cloudflare.com/fundamentals/account/find-account-and-zone-ids/',
|
||||
proxy: true,
|
||||
},
|
||||
{
|
||||
id: 'deno',
|
||||
type: 'deno',
|
||||
name: 'Deno Deploy',
|
||||
description: 'Deploy to Deno Deploy',
|
||||
baseURL: 'https://api.deno.com/v1',
|
||||
apiKeyLabel: 'Access Token',
|
||||
apiKeyURL: 'https://dash.deno.com/account#access-tokens',
|
||||
organizationIdLabel: 'Organization ID',
|
||||
organizationIdURL: 'https://dash.deno.com/orgs',
|
||||
proxy: true,
|
||||
},
|
||||
];
|
||||
Reference in new issue
Block a user