Files
OpenHands/docker
Rohit Malhotraandopenhands db976f2e66 fix: use PostHog prod creds only for tagged Docker releases (#666)
* fix: set VITE_APP_ENV=production in Docker build for PostHog prod creds

The Docker frontend build stage was not setting VITE_APP_ENV, so all
Docker images (including tagged releases) used the PostHog staging key.
This adds ENV VITE_APP_ENV=production to the frontend-build stage,
matching the build:lib npm path behavior.

Co-authored-by: openhands <openhands@all-hands.dev>

* fix: use PostHog prod creds only for tagged Docker releases

Make VITE_APP_ENV a Dockerfile build arg (default empty = staging key).
The CI workflow passes VITE_APP_ENV=production only when building from
a tagged release (refs/tags/v*), so PR and main-branch images keep the
staging key while release images get the production key.

Co-authored-by: openhands <openhands@all-hands.dev>

---------

Co-authored-by: openhands <openhands@all-hands.dev>
2026-05-20 14:55:56 +00:00
..