Simplify Replit deployment

This commit is contained in:
hwhung
2026-05-06 00:04:11 +08:00
parent 5463862d32
commit da856261f3
5 changed files with 112 additions and 20 deletions
+22 -2
View File
@@ -2,7 +2,7 @@
## Overview
Standalone TypeScript API server with CLI-only deployment configuration.
Standalone TypeScript API server with Replit run and deployment configuration.
## Stack
@@ -14,7 +14,14 @@ Standalone TypeScript API server with CLI-only deployment configuration.
## Provider Endpoints
Use Replit AI Integrations endpoints through CLI flags:
Use Replit AI Integrations endpoints. The app reads these environment variables automatically:
- `AI_INTEGRATIONS_OPENAI_BASE_URL`
- `AI_INTEGRATIONS_OPENAI_API_KEY`
- `AI_INTEGRATIONS_ANTHROPIC_BASE_URL`
- `AI_INTEGRATIONS_ANTHROPIC_API_KEY`
CLI flags are still available for manual overrides:
- `--openai-base-url`
- `--openai-api-key`
@@ -31,6 +38,19 @@ Never use public official provider endpoints.
- `pnpm run build` — typecheck and build `dist/index.mjs`
- `pnpm start` — run the built server
## Replit Configuration
- `.replit` `run` uses `pnpm dev`
- `.replit` `onBoot` uses `pnpm install --ignore-workspace`
- deployment build uses `pnpm install --ignore-workspace && pnpm run build`
- deployment run uses `pnpm start`
## Server Overrides
- `--host` or `HOST`
- `--port` or `PORT`
- `--proxy-api-key` or `PROXY_API_KEY`
## Routes
- `/` and `/dashboard` — static model dashboard