Environment variables
This reference lists environment variables used by the Pledg extension.
All Pledg environment variables are optional and have sensible defaults; you only need to override them when your deployment requires it.
| Name | Default | Description |
|---|---|---|
| FRONT_COMMERCE_PLEDG_HOST | staging.back.ecard.pledg.co | Pledg backend host used to call the OAuth2 API. Set to back.ecard.pledg.co in production. |
| FRONT_COMMERCE_PLEDG_TIMEOUT_IN_MS | 50000 | Timeout (in milliseconds) applied to every HTTP call to the Pledg API. |
info
FRONT_COMMERCE_PLEDG_HOST only selects the API host. It does not select
the credentials: with the gezy flavor, credentials are chosen by
FRONT_COMMERCE_ENV (production picks the prod credentials configured in
Gezy, any other value picks the test ones). Keep both variables consistent —
see
Environment and credentials.