Use Replit default port

This commit is contained in:
hwhung
2026-04-27 12:43:12 +08:00
parent 934ab43ccc
commit 5463862d32
3 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -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 "<ai-integrations-openai-base-url>" \
--openai-api-key "<ai-integrations-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`.
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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",