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
@@ -9,7 +9,7 @@ Do not add this repo to a parent workspace. Do not move it into `artifacts/`. Do
The repo includes `.replit`, so after import the Run button starts the app with:
```bash
node build.mjs && PORT=${PORT:-3000} PROXY_API_KEY=${PROXY_API_KEY:-dev-proxy-key} node --enable-source-maps dist/index.mjs
PORT=${PORT:-3000} PROXY_API_KEY=${PROXY_API_KEY:-dev-proxy-key} pnpm prod
```
The `.replit` `onBoot` command installs dependencies with:
@@ -35,7 +35,7 @@ Use the available `pnpm`. This repo intentionally has no `packageManager` pin.
## Start
```bash
node build.mjs && PORT=${PORT:-3000} PROXY_API_KEY=${PROXY_API_KEY:-dev-proxy-key} node --enable-source-maps dist/index.mjs
PORT=${PORT:-3000} PROXY_API_KEY=${PROXY_API_KEY:-dev-proxy-key} pnpm prod
```
When Replit AI Integrations are provisioned, the app reads these variables automatically: