Rehost a site's external images locally
rehost_imagesDownload the external images a site references (e.g. from the old site it was rebuilt from), store them on this VibeDeploy site under assets/img/, and rewrite the HTML references to local paths so the site no longer depends on the original. Call this once AFTER deploying a site rebuilt with the Website Converter. Auto-detects the external image URLs from the site's own HTML; downloads are SSRF-guarded, size/count/time capped, and applied atomically (patch mode). Images already hosted on vibedeploy.be are skipped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Site name (subdomain) whose external images should be downloaded and rehosted locally. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| siteId | Yes | ||
| failures | Yes | External image URLs that could not be rehosted (left untouched in the HTML). | |
| request_id | No | Server-assigned request correlation id. Quote it when contacting support. | |
| bytesHosted | Yes | ||
| imagesHosted | Yes | Number of external images downloaded and stored on the site. | |
| htmlFilesUpdated | Yes | Number of HTML files whose img references were rewritten to local paths. |