Projects

Environment & secrets

Each project has its own environment variables, managed under Details → Variáveis de ambiente.

Adding variables

Add a KEY and value. Two toggles control how it’s treated:

You can also declare a key with no stored value (a placeholder that documents that the project needs it, without committing the value).

Detect

Detect scans the project (e.g. a .env.example) and suggests variables you haven’t added yet.

Sync with .env

Sync .env writes the project’s variables to a local .env file:

DATABASE_URL=postgres://localhost:5432/app
API_KEY=••••••••        # secret — only written when the vault is unlocked

If the .env already exists, Granspace asks before overwriting.

The environment variables panel
The environment panel with a secret and a published var.