Commit ebca943
committed
fix(docker): re-add RUNTIME_API_ORIGIN passthrough so .env value reaches the container
The previous commit dropped the line under the assumption that Docker Compose
would auto-forward variables from .env to the container. It does not -- .env
only feeds substitution in the compose file itself; containers receive only
what is listed under `environment:` (or via `env_file:`). Removing the
passthrough made RUNTIME_API_ORIGIN inoperative for Docker self-hosting:
users could set it in .env but the webapp container never saw the value, so
runners kept resolving TRIGGER_API_URL from API_ORIGIN/APP_ORIGIN.
Restoring the passthrough is now safe because the zod schema for
RUNTIME_API_ORIGIN normalizes empty strings to undefined, so the unset path
( -> '') no longer short-circuits the '??' fallback
chain. This is the defense-in-depth combination originally suggested in
review: passthrough at the compose layer + empty-string normalization at the
schema layer.1 parent 3398663 commit ebca943
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
0 commit comments