Add prod run script for Replit
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user