docs: add missing TRAVELPAYOUTS_API_TOKEN to self-hosting guide#4329
docs: add missing TRAVELPAYOUTS_API_TOKEN to self-hosting guide#4329shon91827 wants to merge 1 commit into
Conversation
|
@shonchen is attempting to deploy a commit to the World Monitor Team on Vercel. A member of the Team first needs to authorize it. |
Greptile SummaryThis PR adds the missing
Confidence Score: 4/5Documentation-only change that correctly adds a missing environment variable to the self-hosting guide; the key is verified against actual source usage. The added entry matches what the code reads (TRAVELPAYOUTS_API_TOKEN in search-flight-prices.ts) and what .env.example documents. The only gap is that the Free vs Paid tier table was not updated to include the new key, leaving self-hosters without signup cost guidance for this specific token. SELF_HOSTING.md — the Free vs Paid table at line 98 does not yet list Travelpayouts alongside the other free-signup keys. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Self-hoster sets up docker-compose.override.yml] --> B{TRAVELPAYOUTS_API_TOKEN set?}
B -- Yes --> C[fly LON DXB returns live flight quotes]
B -- No --> D[credentials required message shown]
C --> E[search-flight-prices.ts reads token from env]
D --> F[AviationCommandBar.ts displays error]
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
A[Self-hoster sets up docker-compose.override.yml] --> B{TRAVELPAYOUTS_API_TOKEN set?}
B -- Yes --> C[fly LON DXB returns live flight quotes]
B -- No --> D[credentials required message shown]
C --> E[search-flight-prices.ts reads token from env]
D --> F[AviationCommandBar.ts displays error]
|
Summary
SELF_HOSTING.md's docker-compose API keys example was missingTRAVELPAYOUTS_API_TOKEN, which powers thefly LON DXBflight price command mentioned inREADME.md.Without this key in their
docker-compose.override.yml, self-hosters get a "credentials required" message when using the flight price feature and have no obvious path to fixing it from the self-hosting docs.Added it under the Aviation section alongside
AVIATIONSTACK_API.Source of truth
server/worldmonitor/aviation/v1/search-flight-prices.ts:48readsTRAVELPAYOUTS_API_TOKEN.env.example:118documents the keyREADME.md:78mentions the key by nameNo code changes — documentation only.
🤖 Generated with Claude Code