From b8abd9a05ed8be3d2e864870567327aa2c8accc3 Mon Sep 17 00:00:00 2001 From: Louis Knight-Webb Date: Thu, 11 Dec 2025 10:30:40 +0000 Subject: [PATCH] Done! I've updated the README to: (#1494) 1. Added the `PORT` environment variable with its dual behavior (production vs dev) 2. Clarified that `BACKEND_PORT` and `FRONTEND_PORT` are dev mode only and override the PORT-derived values The changes are minimal and accurate based on the code exploration. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 36b1b9b1..c8b64f23 100644 --- a/README.md +++ b/README.md @@ -105,8 +105,9 @@ The following environment variables can be configured at build time or runtime: |----------|------|---------|-------------| | `POSTHOG_API_KEY` | Build-time | Empty | PostHog analytics API key (disables analytics if empty) | | `POSTHOG_API_ENDPOINT` | Build-time | Empty | PostHog analytics endpoint (disables analytics if empty) | -| `BACKEND_PORT` | Runtime | `0` (auto-assign) | Backend server port | -| `FRONTEND_PORT` | Runtime | `3000` | Frontend development server port | +| `PORT` | Runtime | Auto-assign | **Production**: Server port. **Dev**: Frontend port (backend uses PORT+1) | +| `BACKEND_PORT` | Runtime | `0` (auto-assign) | Backend server port (dev mode only, overrides PORT+1) | +| `FRONTEND_PORT` | Runtime | `3000` | Frontend dev server port (dev mode only, overrides PORT) | | `HOST` | Runtime | `127.0.0.1` | Backend server host | | `DISABLE_WORKTREE_ORPHAN_CLEANUP` | Runtime | Not set | Disable git worktree cleanup (for debugging) |