Rebuild Site From Source
site_rebuildRe-build and re-publish a Next.js / Vite / CRA site FROM THE SOURCE KEPT ON THE SERVER by a
prior deploy_site_zip of a source project. This is the "edit in chat → publish" loop for build
frameworks: the source lives under .src/ (kept after the first deploy) — edit it with
site_edit_file / site_write_file (e.g. .src/app/page.tsx, .src/pages/index.js, .src/src/App.jsx),
then call site_rebuild to compile the static export again and publish it live. Only works when a
SOURCE project was deployed (a .src/ exists); a plain static site has no build step — just edit
its files directly (they are already live). A version snapshot is taken first (site_restore
undoes it). Build cap ~10 min; the server needs enough disk for node_modules (Next.js is large —
small/free servers may run out of space; use an adequately-sized AI Server). site = the key
or domain of an EXTRA website on that server; leave it empty for the main website.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | ||
| server | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||