validate_function_url
Checks whether the Staticbot export edge function is live at the given URL and completes the sync step when reachable. Returns status and completion flag; if not live, continue polling the migration job.
Instructions
Check that the Staticbot export edge function is reachable, and COMPLETE its sync step when it is. Use after the user pasted 'deploy staticbot edge function' into the Lovable AI chat (Base44: synced from GitHub). The function URL is in the MANUAL_SYNC_LOVABLE / MANUAL_SYNC_BASE44 job's inputData (function_url), or derive it as https://{sourceProjectRef}.supabase.co/functions/v1/{functionName}. Returns {status: 'ok'|'error', message, completed}. completed=true means the step is done — by this call or because Staticbot already detected the deployment — so do NOT call complete_migration_job afterwards; re-fetch get_migration and follow its pendingAction. On status 'error' the function is not live yet: Staticbot keeps checking by itself, so waiting and polling get_migration every 15-30 seconds is enough.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes | The MANUAL_SYNC_LOVABLE or MANUAL_SYNC_BASE44 job ID | |
| functionUrl | Yes | Edge function URL to validate |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Parsed JSON response from the Staticbot public API |