Skip to content

v1.0.30 — Sites travel with the project

Choose a tag to compare

@github-actions github-actions released this 24 Nov 04:12
· 4 commits to main since this release

Sites now travel with the project. A pull brings each site's live code into frontend/, a publish keeps each app's source with its build, and site serve points Dev or Prod at a build that already exists. A local Xano Engine no longer has a builder sign-in, so impersonate refuses one.

npm install @xano/sdk@1.0.30

site pull brings each site's live code into frontend/

xanosdk site pull [site...] reads the build each site serves (Dev first, then Prod, then its newest build) and writes that build's kept source as an app. One site gives a flat frontend/; several give frontend/<site>/ each. When a build has no usable source, it falls back to the files the build serves. It shows the plan and confirms first (--yes off a terminal), keeps an existing app folder unless --force, and writes only under frontend/ and the root package.json.

init --from workspace brings the sites by default

A new project from a workspace now pulls each site's live code after the backend, and writes no starter app when the workspace has sites. --no-sites skips the sites. Off a terminal without --yes, the backend is pulled and the sites are skipped with a note. pull --with-sites runs the same step on an existing project.

pull says when a site's live build isn't in your frontend

After a pull from the workspace, each site the project names is checked against the build Xano serves. When your frontend doesn't hold it, pull prints the site pull command that brings it down, and changes nothing. Each site pull records its builds in .xano/sites.json (gitignored).

site serve points Dev or Prod at an existing build

xanosdk site serve <site> <build> --env dev|prod serves a build that already exists, with no rebuild: the same thing Studio's Promote and Rollback do. It asks before changing Prod.

publish keeps each app's source with its build

publish and deploy --static now send each app's folder, plus the root package.json, as its build's kept source, one archive per site. So a later site pull gets the code back. Only what git would commit is sent, and files named like secrets stay out even when committed. If the folder isn't in a git repository, no source is sent and the run says so. --no-static-source sends the build alone.

routeUrl() builds backend URLs that work on the live site

A frontend that fetched a bare routePath(...) worked in a dev server that proxies /api: but broke on the published site. The generated xano/routes.gen.ts now exports routeUrl(path, baseUrl?), which puts the backend in front: baseUrl, else the XANO_HOST every static publish injects, else the path unchanged. The scaffold and docs now use routeUrl(routePath(...)).

A pull verifies on workspaces with inheriting history modes

Pulling a workspace whose history types all inherit the instance's mode, or that has a Studio GitHub link, reported round-trip mismatches. Both now verify. A capture mode that doesn't inherit is still reported.

⚠️ impersonate refuses a Xano Engine

A local Xano Engine is dropping its built-in builder, so there is nothing to sign in to. impersonate local, impersonate local:<name>, and bare impersonate after a local deploy now refuse, pointing to xanosdk local token (Meta API) and xanosdk local mcp (agents). A local deploy no longer prints an "Open the builder" line. This SDK also drives engines that no longer report a sign-in, so update it before the engine.

Notes

@xano/sdk/node exports listSites, pullSites and serveBuild, with typed results and errors, for tools that drive sites directly.