From 5463862d32f68438605690ea16132c5c02396b8f Mon Sep 17 00:00:00 2001 From: hwhung Date: Mon, 27 Apr 2026 12:43:12 +0800 Subject: [PATCH] Use Replit default port --- readme.md | 10 +++++----- replit.md | 2 +- src/lib/config.ts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/readme.md b/readme.md index 5b2b652..55ef7a7 100644 --- a/readme.md +++ b/readme.md @@ -27,7 +27,7 @@ With Replit AI Integrations: ```bash pnpm dev -- \ --host 0.0.0.0 \ - --port 24731 \ + --port 3000 \ --proxy-api-key dev-proxy-key \ --openai-base-url "" \ --openai-api-key "" \ @@ -44,15 +44,15 @@ If the process does not stay alive after the shell exits, create the smallest ba ## Defaults - host: `0.0.0.0` -- port: `24731` +- port: `3000` - bearer token: `dev-proxy-key` ## Verify ```bash -curl -s http://localhost:24731/api/healthz -curl -s http://localhost:24731/dashboard | head -curl -s -H "Authorization: Bearer dev-proxy-key" http://localhost:24731/v1/models +curl -s http://localhost:3000/api/healthz +curl -s http://localhost:3000/dashboard | head +curl -s -H "Authorization: Bearer dev-proxy-key" http://localhost:3000/v1/models ``` Expected without provider flags: dashboard, health, and model list work; chat completions return `503`. diff --git a/replit.md b/replit.md index 9724657..499a301 100644 --- a/replit.md +++ b/replit.md @@ -26,7 +26,7 @@ Never use public official provider endpoints. ## Key Commands - `pnpm install --ignore-workspace` — install dependencies without joining a parent workspace -- `pnpm dev` — run API server locally on port `24731` +- `pnpm dev` — run API server locally on port `3000` - `pnpm run typecheck` — typecheck the server - `pnpm run build` — typecheck and build `dist/index.mjs` - `pnpm start` — run the built server diff --git a/src/lib/config.ts b/src/lib/config.ts index a39f6e3..c047b59 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -24,7 +24,7 @@ export interface AppConfig { const DEFAULT_CONFIG: AppConfig = { server: { host: "0.0.0.0", - port: 24731, + port: 3000, }, proxy: { apiKey: "dev-proxy-key",