chore(dev): pass Giphy key through to dev-web for the GIF picker #472

Merged
longjacksonle merged 1 commit from chore/dev-web-giphy-env into main 2026-06-28 03:21:25 +02:00

What

Wire the optional Giphy GIF-picker key into the dev-web stack so a developer can actually enable LC-488/LC-505 locally. Dev-only; no app/runtime change.

How

compose.dev-web.yml now passes LETS_CHAT_GIPHY_API_KEY / LETS_CHAT_GIPHY_RATING through from the shell:

LETS_CHAT_GIPHY_API_KEY: "${LETS_CHAT_GIPHY_API_KEY:-}"
LETS_CHAT_GIPHY_RATING: "${LETS_CHAT_GIPHY_RATING:-}"

So the key stays out of git - export LETS_CHAT_GIPHY_API_KEY=... && just dev-web. Empty/unset keeps the composer GIF button hidden (the server's gif::GifConfig::from_env filters empty); the server defaults the rating to pg-13 when blank.

Verify

docker compose config resolves the value from the shell when exported and to "" when unset. (Confirmed both.)

## What Wire the optional Giphy GIF-picker key into the dev-web stack so a developer can actually enable LC-488/LC-505 locally. Dev-only; no app/runtime change. ## How `compose.dev-web.yml` now passes `LETS_CHAT_GIPHY_API_KEY` / `LETS_CHAT_GIPHY_RATING` through from the shell: ```yaml LETS_CHAT_GIPHY_API_KEY: "${LETS_CHAT_GIPHY_API_KEY:-}" LETS_CHAT_GIPHY_RATING: "${LETS_CHAT_GIPHY_RATING:-}" ``` So the key stays out of git - `export LETS_CHAT_GIPHY_API_KEY=... && just dev-web`. Empty/unset keeps the composer GIF button hidden (the server's `gif::GifConfig::from_env` filters empty); the server defaults the rating to `pg-13` when blank. ## Verify `docker compose config` resolves the value from the shell when exported and to `""` when unset. (Confirmed both.)
chore(dev): pass LETS_CHAT_GIPHY_* through to the dev-web container (LC-505)
All checks were successful
check-secrets / TruffleHog (push) Successful in 5s
check-secrets / Nosey parker (push) Successful in 5s
check-secrets / Kingfisher (push) Successful in 5s
check-secrets / Nosey parker (pull_request) Successful in 6s
check-secrets / TruffleHog (pull_request) Successful in 8s
check-secrets / Kingfisher (pull_request) Successful in 9s
Check / clippy + fmt + tests (pull_request) Successful in 7m4s
Create release / Create release from merged PR (pull_request) Has been skipped
5b3db7c495
Wire the optional Giphy key into compose.dev-web.yml as a shell pass-through (${LETS_CHAT_GIPHY_API_KEY:-}) so a dev can `export LETS_CHAT_GIPHY_API_KEY=... && just dev-web` to enable the GIF picker without committing a secret. Empty/unset keeps the button hidden.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
longjacksonle scheduled this pull request to auto merge when all checks succeed 2026-06-28 03:16:01 +02:00
longjacksonle deleted branch chore/dev-web-giphy-env 2026-06-28 03:21:25 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/lets-chat!472
No description provided.