Deployment providers refactoring

This commit is contained in:
Alex Gleason committed 2026-01-03 18:49:54 -06:00
1 parent cb3fb88a75
commit 1915e6044f
7 files changed
+168 -348

No files matched your search

+63
View File
@@ -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,
},
];