Skip to content

Versions, development and production

Each app built on Sovyn has two environments:

  • Development at https://<app>--dev.sovyn.site. Only members of your team reach it. Here the app takes shape.
  • Production at https://<app>.sovyn.site. It only exists once you ask for it, and it has its own data and its own end users.

Each time your assistant publishes the app, a new version comes out: the manifest, the frontend, the functions and the workflows together. A version never changes afterwards. An environment always runs exactly one version.

When your assistant runs deploy, this happens:

  1. It uploads the source code of the project folder. It leaves out node_modules, dist, .git, .sovyn and .env files. Packed, the upload may be at most 25 MB.
  2. The platform scans the source code for security problems, before any code runs (see Security).
  3. It installs the packages from package-lock.json. Install scripts of packages do not run.
  4. It checks the code with tsc, the functions included.
  5. It builds the frontend with vite build and bundles each function.
  6. It searches the source code, the functions and the frontend for API keys and publishes the new version in development.

If a step fails, your assistant sees which one and why. The running app stays exactly as it was: a failed build changes nothing.

A few rules keep the build host fair for everyone:

  • Only one build per app runs at a time. A second deploy is refused until the first one has ended.
  • If the build host is full, the build waits up to 10 minutes for a free place. That is not an error.
  • There is a daily guard limit on build seconds per app. Once it is reached, deploy is refused until the next day (UTC). It is not a quota you buy; it protects the build host from an app that builds without end.

Your assistant puts an app into production only when you explicitly ask for it. It then runs promote. This takes the version that runs in development into production, without a new build.

  • No data is copied. Data, end users and secrets stay separate in each environment. The first promote creates production empty.
  • Later promotes only add things: new collections, new fields, new values. If a field or a collection would disappear, promote refuses, unless you have agreed to remove it. Then it moves to the trash of production.
  • Production needs a plan. The first promote asks for one; what it costs is on Plans and usage.

promote is refused, and production stays unchanged, if:

  • a security finding is neither fixed nor confirmed by your team,
  • the security scan of the version was incomplete; a new deploy scans again,
  • a live API key sits in the frontend; nobody can confirm this, the key has to go (see API keys and secrets),
  • a secret the app needs is missing in production,
  • the access rules or the sign-in were changed after the version was built; a new deploy first, then promote.

Your assistant tells you what is missing and what to do.

Sovyn keeps a list of every version that was active in an environment. Your assistant can show you this list and make an earlier version active again, in development and in production. This is a rollback.

A rollback always takes two steps:

  1. Your assistant first runs a check against the real data of the environment. It changes nothing and shows you what the rollback would do.
  2. Only after you agree does your assistant roll back for real.

A rollback never deletes anything. Fields and collections the older version does not know simply stay. Fields and collections that were removed come back from the trash with their values, as long as they are still there (30 days). If the data no longer fits the older version, for example because new entries lack a value for a field that comes back as required, the rollback stops and changes nothing.

When a field or a collection is removed, it does not disappear at once. It moves to the trash together with its values and stays there for 30 days. Within that time, a rollback brings it back. After that, it is deleted for good.

What lies in the trash counts towards the storage of the app.

Your assistant can reset development: apply --reset rebuilds it empty. The old data, end users and sessions move to the trash for 30 days. Your assistant does this only after you agree. Production cannot be reset.

Your assistant can delete an app. Before that, it shows you what would be lost, and deletes only after you agree. Deleting removes:

  • both environments, development and production,
  • their data and end users,
  • all versions.

Afterwards the name of the app is free again. If the app was a paid position, the position ends with the period already paid.

The app runs at its sovyn.site address. An owner or admin of the team connects one custom domain to production, in the Sovyn console or through your assistant. To prove the domain is yours, you create a TXT record _sovyn-verify.<domain> and a CNAME, or an A record for a domain without subdomain such as example.com. Sovyn does not check on its own: once the records are set, click Check in the console or ask your assistant to check again. Only when both records are visible does Sovyn issue the certificate and the app answer under the domain. A domain without subdomain also gets its www variant, once www has a CNAME to the domain.

The usual case is that production also sends its emails from that very name: the app at booking.example.com, the emails from booking@booking.example.com. A name with a CNAME cannot hold any other record, and the sender domain needs TXT records on it. So for a subdomain, create an A record on the address Sovyn shows instead of the CNAME; Sovyn accepts both. If the domain already points at Sovyn by CNAME, setting up the sender domain shows the change as the first step: replace the CNAME with the A record. The domain stays confirmed and keeps working over the A record.