Environment variables
Names only. Values live in the Zuplo dashboard (Settings > Environment Variables) and your local .env. env.example lists the same names.
API gateway
| Variable | Purpose | Required | If unset | Source |
|---|---|---|---|---|
|
Firestore project used by |
Required |
Truck and check-in routes throw an error. |
Firebase console > Project settings > General > Project ID. |
|
Service account key used by the |
Required |
Truck and check-in routes fail upstream auth. |
Firebase console > Project settings > Service accounts > Generate new private key. Paste the whole JSON as a secret. |
|
Signs the owner token in |
Required |
Sign-in cannot issue tokens; protected routes reject every request. |
Generate a long random string (for example |
|
Google OAuth client for owner sign-in ( |
Optional |
Falls back to the client ID hardcoded in |
Google Cloud console > APIs & Services > Credentials > OAuth 2.0 Client IDs. |
|
Google OAuth client secret for the token exchange in |
Required |
Owner sign-in fails. |
Google Cloud console > Credentials > the same OAuth client > Client secret. Store as a secret. |
|
Google Places Text Search for |
Required |
Search returns an error. |
Google Cloud console > Credentials > API key. Restrict it to the Places API. It is server-side only. |
|
Public gateway URL for session cookie domain logic ( |
Optional |
Uses the Zuplo environment values below. |
Your gateway URL, for example |
|
Environment stage read by |
Optional |
Set by Zuplo. |
Provided by the Zuplo platform; do not set by hand. |
|
Environment name read by |
Optional |
Set by Zuplo. |
Provided by the Zuplo platform; do not set by hand. |