Spectivis Cloud
Variables
Plain, secret and managed variables, and when changes take effect.
Variables are settings your app reads when it runs, such as APP_KEY or an API key. They belong to one environment. Each environment has its own.
| Kind | What it means |
|---|---|
| Plain | Stays visible in the panel. |
| Secret | Cannot be read back after you save it. You can replace it, not view it. |
| Managed | Filled in by Cloud, such as the database settings, APP_URL and PORT. Shown as managed. |
You can override any managed variable except PORT.
Cloud stores secret values encrypted. Variables reach the build as build secrets, so they are not written into image layers or build logs.
Changing variables
Section titled “Changing variables”Changes apply on the next deploy, not at once. The form has two buttons:
- Save stores the change. It takes effect on the next deploy.
- Save and deploy stores it and deploys now.
A new environment can copy variables from another environment of the same app.
Variables that are baked into the build
Section titled “Variables that are baked into the build”Some tools read variables while building, and put the value into the files. Examples are NEXT_PUBLIC_ variables in Next.js and VITE_ variables in Vite. Changing them takes a new build. A rollback keeps the values it was built with.
Anything baked into a static site is public. Never put a secret in one.