Environment variables configure your application at build and runtime. They are managed in the Variables tab of your project.
Adding a variable
- Open the project → Variables tab.
- Click Add variable.
- Enter the key (e.g.
DATABASE_URL) and the value. - Save.
Capture à venir
en/variables-overview
Cette capture illustrera la vue correspondante. Elle est générée automatiquement par le pipeline Playwright.
Warning
Variables are injected at build and container startup. After a change, redeploy to apply it.
Build-injected variables
These prefixes are injected during the image build:
VITE_* Vite / frontend
NEXT_PUBLIC_* Next.js
REACT_APP_* Create React App
NUXT_* Nuxt
Secret detection
Paylood automatically masks sensitive values in the UI based on the key:
APP_KEY,JWT_SECRET*_API_KEY,*_SECRET*_PASSWORD,*_PRIVATE_KEY
The value is kept server-side (encrypted) but is not displayed again in the UI.
Importing from a .env file
- In the Variables tab (or the creation wizard), click Import
.env. - Select your local file.
- Each
KEY=valueis parsed and added. Duplicates are flagged.
Duplicate validation
The UI refuses to save two variables with the same key in the same environment: an error message shows and you must fix it before continuing.
Deleting a variable
Open the variable’s row then Delete. Remember to redeploy to remove the variable from running containers.
Tip
Organize your secrets per environment: a variable present only on main is never applied to develop.