Skip to content

v1.0.32 — A downloaded workspace runs on its own data

Choose a tag to compare

@github-actions github-actions released this 24 Nov 22:07
· 2 commits to main since this release

A workspace downloaded from Xano now opens as a project and runs on its own data.

npm install @xano/sdk@1.0.32

init --from <bundle> turns a downloaded workspace into a project

xanosdk init --from shop.tar.gz takes a workspace exported by the Xano Engine (the end-of-trial download). It does five things:

  • unpacks the workspace's records and files into xano/data;
  • pulls the backend code into xano/;
  • names the project folder after the workspace;
  • prints anything that didn't carry over;
  • ends with the command that runs it.

Any other .tar.gz is refused with the reason, and a refused or cancelled run leaves nothing behind.

deploy --local runs on xano/data

When a project has xano/data, deploy --local runs the engine on that folder instead of a throwaway one, so the records stay between runs.

  • Every deploy merges the code in and keeps the rows. Seed rows are never written over them.
  • --reset is refused, with the steps to start over.
  • Before writing anything, the deploy checks that the workspace it targets is in the data.

xano/data stays private

xano/data holds the workspace's secrets.

  • It's gitignored in new and existing projects, and a deploy warns if git already tracks it.
  • It's never packed into a publish, an archive or a source upload.
  • init --force no longer deletes it.