Deploys Supabase edge functions individually or in groups (auth, payments, ai, data, email) with health verification and notifications. This skill should be used when deploying edge functions to Supabase, updating serverless functions, or batch deploying multiple functions.
This skill automates the deployment of Supabase edge functions with grouping, health checks, and comprehensive reporting.
Functions are organized into logical groups for batch deployment:
create-oauth-profile - OAuth user onboardingcreate-buyer-profile - Buyer signupcreate-creator-profile - Creator signupstripe-webhook - Main Stripe event handlercreator-stripe-webhook - Creator payment eventscreate-checkout-sessioncreate-creator-checkout - Creator checkoutcreate-billing-portal - Stripe portal redirectcancel-subscription - Subscription cancellationchat-orchestrator - AI chatbot orchestration (GPT-4 + vector search)mandate-matcher - Producer mandate matchingvector-search - Raw vector similarity searchcomps-generator - Hollywood comps generationformat-fit-engine - Format analysisregenerate-embeddings - Embedding regenerationtitle-intelligence - Platform data scrapingkey-visuals-collector - Visual metadata extractionanalyze-pitch-for-assets - Pitch analysisgenerate-asset - Marketing asset generationsend-email - Unified email sender (Resend API)send-approval-email - Admin approval notificationsget-creator-billing-history - Creator subscription historycancel-subscription - Subscription cancellation/deploy-functions chat-orchestrator # Deploy single function
/deploy-functions --group=auth # Deploy all auth functions
/deploy-functions --group=payments # Deploy all payment functions
/deploy-functions --group=ai # Deploy all AI functions
/deploy-functions --all # Deploy ALL functions
/deploy-functions --all --skip-health # Skip health checks
Before deploying, verify requirements:
# Check Supabase CLI is available
npx supabase --version
# Verify function exists
ls supabase/functions/[function-name]/
# Check for required secrets (if function uses them)
# Note: Secrets are managed via Supabase dashboard
Deploy using Supabase CLI:
# Single function
npx supabase functions deploy [function-name]
# Multiple functions (run sequentially)
npx supabase functions deploy create-oauth-profile
npx supabase functions deploy create-buyer-profile
npx supabase functions deploy create-creator-profile
Capture output for each deployment:
Verify each deployed function is responding:
# Get project URL
SUPABASE_URL="https://dlrnrgcoguxlkkcitlpd.supabase.co"
# Check function endpoint (OPTIONS request for CORS)
curl -s -o /dev/null -w "%{http_code}" \
-X OPTIONS \
"$SUPABASE_URL/functions/v1/[function-name]"
Expected responses:
For functions that bypass JWT (webhooks):
# stripe-webhook should return 400 (missing body) not 500
curl -s -o /dev/null -w "%{http_code}" \
-X POST \
"$SUPABASE_URL/functions/v1/stripe-webhook"
Generate deployment summary:
## Edge Function Deployment Summary
**Deployed**: 3 functions (auth group)
**Time**: 2024-12-25 14:30 UTC
### Functions Deployed
| Function | Status | Health | Time |
|----------|--------|--------|------|
| create-oauth-profile | SUCCESS | HEALTHY | 8s |
| create-buyer-profile | SUCCESS | HEALTHY | 7s |
| create-creator-profile | SUCCESS | HEALTHY | 9s |
### Endpoints
All functions available at: