- Add manual deployment instructions for self-hosted Supabase - Add schema refresh SQL scripts - Add deployment helper scripts - Add Supabase environment configuration 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
25 lines
838 B
Bash
Executable File
25 lines
838 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Deploy to self-hosted Supabase using environment variables
|
|
|
|
# Set Supabase environment variables
|
|
export SUPABASE_URL="https://lovable.backoffice.biz.id"
|
|
export SUPABASE_SERVICE_ROLE_KEY="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzdXBhYmFzZSIsImlhdCI6MTc2NjAzNzEyMCwiZXhwIjo0OTIxNzEwNzIwLCJyb2xlIjoic2VydmljZV9yb2xlIn0.t6D9VwaukYGq4c_VbW1bkd3ZkKgldpCKRR13nN14XXc"
|
|
|
|
FUNCTION_NAME="create-google-meet-event"
|
|
FUNCTION_FILE="supabase/functions/$FUNCTION_NAME/index.ts"
|
|
|
|
echo "🚀 Deploying $FUNCTION_NAME to self-hosted Supabase..."
|
|
echo ""
|
|
|
|
if [ ! -f "$FUNCTION_FILE" ]; then
|
|
echo "❌ Function file not found: $FUNCTION_FILE"
|
|
exit 1
|
|
fi
|
|
|
|
echo "📤 Deploying via Supabase CLI..."
|
|
supabase functions deploy "$FUNCTION_NAME" --project-ref "lovable-backoffice" --verify-jwt
|
|
|
|
echo ""
|
|
echo "✨ Deployment complete!"
|