Bando Documentation
Environment variables
Configure the variables your project uses in development and production.
What are environment variables?
Environment variables are values provided to the process when Bando is executed.
They are especially useful for configuration that changes between environments, such as development and production, and for information that should not be written directly into the code.
| Parâmetro | Tipo | Obrigatório | Por omissão | Descrição |
|---|---|---|---|---|
DATABASE_URL | string | não | — | URL used to connect to PostgreSQL. |
PORT | number | não | 3333 | HTTP port used by the runtime. |
JWT_SECRET | string | não | — | Secret used for authentication. Required in production. |
JWT_EXPIRES_IN | number | não | 28800 | Token duration in seconds. |
BANDO_ADMIN_EMAIL / PASSWORD | string | não | — | Credentials used for the initial administrator. Both must be defined and the password must contain at least 8 characters. |
BANDO_ADMIN_NAME | string | não | Bando Administrator | Initial administrator name. |
STUDIO_URL | string | não | http://localhost:5173 | Origin allowed by CORS. |