|
@@ -551,7 +551,21 @@ When making changes:
|
|
|
|
|
|
|
|
**Steps to deploy Edge Functions:**
|
|
**Steps to deploy Edge Functions:**
|
|
|
|
|
|
|
|
-1. **Via CLI** (recommended for multiple functions):
|
|
|
|
|
|
|
+1. **Via MCP Tools** (PREFERRED for Claude Code):
|
|
|
|
|
+ ```
|
|
|
|
|
+ Use mcp__supabase__deploy_edge_function with:
|
|
|
|
|
+ - name: function name (e.g., "trigger-sync", "api", "oauth-shopify")
|
|
|
|
|
+ - files: array of files with name and content properties
|
|
|
|
|
+
|
|
|
|
|
+ Example:
|
|
|
|
|
+ mcp__supabase__deploy_edge_function(
|
|
|
|
|
+ name: "trigger-sync",
|
|
|
|
|
+ files: [{"name": "index.ts", "content": "..."}]
|
|
|
|
|
+ )
|
|
|
|
|
+ ```
|
|
|
|
|
+ **Benefits**: No manual authentication, automatic project selection, works directly in Claude Code
|
|
|
|
|
+
|
|
|
|
|
+2. **Via CLI** (alternative, requires manual authentication):
|
|
|
```bash
|
|
```bash
|
|
|
# Deploy a specific function
|
|
# Deploy a specific function
|
|
|
supabase functions deploy <function-name> --project-ref ztklqodcdjeqpsvhlpud
|
|
supabase functions deploy <function-name> --project-ref ztklqodcdjeqpsvhlpud
|
|
@@ -560,11 +574,6 @@ When making changes:
|
|
|
supabase functions deploy oauth-woocommerce oauth-shopify api --project-ref ztklqodcdjeqpsvhlpud
|
|
supabase functions deploy oauth-woocommerce oauth-shopify api --project-ref ztklqodcdjeqpsvhlpud
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-2. **Via MCP Tool** (for Claude Code):
|
|
|
|
|
- ```
|
|
|
|
|
- Use mcp__supabase__deploy_edge_function with the function files
|
|
|
|
|
- ```
|
|
|
|
|
-
|
|
|
|
|
3. **Verify deployment**:
|
|
3. **Verify deployment**:
|
|
|
- Check version number increased using `mcp__supabase__list_edge_functions`
|
|
- Check version number increased using `mcp__supabase__list_edge_functions`
|
|
|
- Review logs using `mcp__supabase__get_logs(service: "edge-function")`
|
|
- Review logs using `mcp__supabase__get_logs(service: "edge-function")`
|