summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-05 00:30:34 +0900
committerAdam Malczewski <[email protected]>2026-06-05 00:30:34 +0900
commitefb4737fd22572f757e7a9eb1034dd96ae1b6593 (patch)
treee3d630b834d199f4712caa02399bf654bfb039a6 /packages
parent9aadc668c0bc515bce9f28ff28376d990f9425f5 (diff)
downloaddispatch-efb4737fd22572f757e7a9eb1034dd96ae1b6593.tar.gz
dispatch-efb4737fd22572f757e7a9eb1034dd96ae1b6593.zip
chore(cleanup): align glossary (conversation/conversationId + drift note), ORCHESTRATOR↔plan §5/§3.6, add HANDOFF.md, host-bin reads BACKEND_PORT (24203)
Diffstat (limited to 'packages')
-rw-r--r--packages/host-bin/src/main.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/host-bin/src/main.ts b/packages/host-bin/src/main.ts
index 8a7dd57..a3eb164 100644
--- a/packages/host-bin/src/main.ts
+++ b/packages/host-bin/src/main.ts
@@ -127,7 +127,8 @@ async function boot(): Promise<void> {
const hostAPI = buildPostActivationHostAPI(host, deps);
const app = createServer(hostAPI);
- const port = Number(process.env.PORT) || 3000;
+ // Port precedence: BACKEND_PORT (the rewrite's assigned port) → PORT → default.
+ const port = Number(process.env.BACKEND_PORT) || Number(process.env.PORT) || 24203;
const server = Bun.serve({ fetch: app.fetch, port });
logger.info(`Dispatch listening on http://localhost:${server.port}`);
}