summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
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}`);
}