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.
This commit is contained in:
Louis Knight-Webb
2025-12-11 10:30:40 +00:00
committed by GitHub
parent 85f6ee5237
commit b8abd9a05e

View File

@@ -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_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) | | `POSTHOG_API_ENDPOINT` | Build-time | Empty | PostHog analytics endpoint (disables analytics if empty) |
| `BACKEND_PORT` | Runtime | `0` (auto-assign) | Backend server port | | `PORT` | Runtime | Auto-assign | **Production**: Server port. **Dev**: Frontend port (backend uses PORT+1) |
| `FRONTEND_PORT` | Runtime | `3000` | Frontend development server port | | `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 | | `HOST` | Runtime | `127.0.0.1` | Backend server host |
| `DISABLE_WORKTREE_ORPHAN_CLEANUP` | Runtime | Not set | Disable git worktree cleanup (for debugging) | | `DISABLE_WORKTREE_ORPHAN_CLEANUP` | Runtime | Not set | Disable git worktree cleanup (for debugging) |