Add prod run script for Replit

This commit is contained in:
hwhung
2026-05-07 19:01:30 +08:00
parent f48b6665bc
commit 012224d40c
5 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ Never use public official provider endpoints.
## Key Commands
- `pnpm install --ignore-workspace` — install dependencies without joining a parent workspace
- `node build.mjs && node --enable-source-maps dist/index.mjs` — build and run API server locally on port `3000`
- `pnpm prod` — build and run API server locally on port `3000`
- `pnpm run typecheck` — typecheck the server
- `pnpm run build` — typecheck and build `dist/index.mjs`
- `pnpm run build:fast` — build `dist/index.mjs` without typechecking
@@ -41,7 +41,7 @@ Never use public official provider endpoints.
## Replit Configuration
- `.replit` `run` builds with `node build.mjs` and runs `dist/index.mjs`
- `.replit` `run` uses `pnpm prod`
- `.replit` `onBoot` uses `pnpm install --ignore-workspace`
- publishing from a parent workspace should configure root `.replit` deployment and create a shell web artifact