functions_rebuild
Rebuild one or all functions in a project to apply gateway-side wrapper fixes without changing source code. Specify a function name for single rebuild or omit for batch.
Instructions
Refresh function(s) onto the platform's current entry wrapper + bundled runtime WITHOUT changing source (capability function-runtime-rebuild, gateway v1.69+). Provide name to rebuild one function, or omit it to rebuild every function in the project. Re-bundles from each function's STORED source with deps pinned to the recorded exact versions, so the source code_hash is unchanged and no new release is created — this is how a gateway-side wrapper fix (e.g. an SSR auth.* fix) reaches an already-deployed function (a plain redeploy with unchanged source does NOT pick it up). Strictly opt-in; the platform never auto-rebuilds. Wallet-authed (project ownership; no service key) and allowed during billing grace. Functions deployed before dependency locking return CANNOT_REBUILD_UNLOCKED_DEPS — redeploy them from source with deploy_function. Use list_functions (runtime_stale) or run402 doctor to find stale functions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Function name to rebuild. Omit to rebuild every function in the project (batch). | |
| project_id | Yes | The project ID |