deploy_site_dir
Deploy a static site from a local directory by hashing files and uploading only changed bytes, skipping .git, node_modules, and symlinks.
Instructions
Deploy a static site from a local directory. Walks the tree, hashes each file, and uploads only the bytes the gateway doesn't already have via the v1.32 plan/commit transport. Files named .git, node_modules, or .DS_Store are skipped; symlinks are rejected. Re-deploying an unchanged tree issues no S3 PUTs. Free with active tier.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | Project ID to link this deployment to | |
| dir | Yes | Local directory to deploy. The SDK walks this directory, hashes each file, and uploads only bytes the gateway doesn't already have via the unified deploy primitive (CAS-backed). Files named .git, node_modules, or .DS_Store are skipped. Symlinks are rejected. | |
| target | No | Deprecated/unsupported: unified deploy v2 does not support deployment target labels. Passing this field returns an error. |