You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 596cd15
Browse filesBrowse the repository at this point in the historyBrowse files
docs(AGENTS.md): the dev-server port is a default, not hard-wired
Three contributor lines now say what the code does. `pnpm run setup` is
install plus the spec build only, and `pnpm dev`'s preflight wants a full
`pnpm build` (scripts/check-dev-prereqs.mjs), so the line no longer calls it
the first-time step. The dev-server row drops "Port must be 3000 (UI
hard-wired)": `os dev` reads `--port`, then `OS_PORT`, then the legacy
`PORT`, defaults to 3000 and shifts off a busy port
(packages/cli/src/commands/dev.ts), and the Console dev proxy targets
`DEV_PROXY_TARGET || http://localhost:3000` (ui/apps/console/vite.config.ts).
The fast-iteration paragraph spells the documented `OS_PORT`.
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYmhU5KEj1nukYhp1Tg
@@ -135,7 +135,7 @@ layer at least as close to the code (ruling record 6120820653).
135
135
136
136
| Scenario | Command | Notes |
137
137
|:---|:---|:---|
138
-
|**Frontend debug** (the Console in `ui/` calls backend) |`PORT=3000 pnpm dev`|`pnpm dev` = the **showcase** kitchen-sink app (default; best for exercising the platform). Port **must** be 3000 (UI hard-wired); persistent state; leave running. For the minimal CRM app instead: `PORT=3000 pnpm dev:crm`. |
138
+
|**Frontend debug** (the Console in `ui/` calls backend) |`OS_PORT=3000 pnpm dev`|`pnpm dev` = the **showcase** kitchen-sink app (default; best for exercising the platform). Port 3000 is the default, not hard-wired: the Console dev proxy targets it unless `DEV_PROXY_TARGET` says otherwise, and a busy port shifts to the next free one, so read the port it prints (`PORT` is the legacy alias of `OS_PORT`); persistent state; leave running. For the minimal CRM app instead: `OS_PORT=3000 pnpm dev:crm`. |
139
139
|**Backend-only debug**|`pnpm dev -- --fresh -p <random>`| Random high port; ephemeral tempdir; **you must kill it** when done |
140
140
141
141
`--fresh`: ephemeral tempdir (auto-deleted on exit) + `--seed-admin` (POSTs sign-up, prints creds — default
@@ -167,8 +167,8 @@ ships that same tracked file in `packages/console/dist/`. Full procedure: `docs/
167
167
168
168
**Fast iteration on `ui/` src (no rebuild loop):** run the Console dev server —
169
169
`pnpm --filter @object-ui/console dev` (Vite on **:5180**, HMR). Its `/api` proxy targets
170
-
`DEV_PROXY_TARGET || http://localhost:3000`, so **run the backend you're testing on :3000** (`PORT=3000 pnpm dev` for
171
-
showcase) and browse `:5180`. Note `:3001/_console` (or whatever the backend serves) is the **built** console, not
170
+
`DEV_PROXY_TARGET || http://localhost:3000`, so **run the backend you're testing on :3000** (`OS_PORT=3000 pnpm dev`
171
+
for showcase) and browse `:5180`. Note `:3001/_console` (or whatever the backend serves) is the **built** console, not
172
172
your `ui/` src — only `:5180` reflects local UI edits. See `ui/AGENTS.md` for the app-id /
0 commit comments