Avoid dev command in Replit workflow
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
|
||||
pnpm dev
|
||||
node build.mjs && PORT=${PORT:-3000} PROXY_API_KEY=${PROXY_API_KEY:-dev-proxy-key} node --enable-source-maps dist/index.mjs
|
||||
```
|
||||
|
||||
The `.replit` `onBoot` command installs dependencies with:
|
||||
@@ -35,7 +35,7 @@ Use the available `pnpm`. This repo intentionally has no `packageManager` pin.
|
||||
## Start
|
||||
|
||||
```bash
|
||||
pnpm dev
|
||||
node build.mjs && PORT=${PORT:-3000} PROXY_API_KEY=${PROXY_API_KEY:-dev-proxy-key} node --enable-source-maps dist/index.mjs
|
||||
```
|
||||
|
||||
When Replit AI Integrations are provisioned, the app reads these variables automatically:
|
||||
@@ -45,10 +45,10 @@ When Replit AI Integrations are provisioned, the app reads these variables autom
|
||||
- `AI_INTEGRATIONS_ANTHROPIC_BASE_URL`
|
||||
- `AI_INTEGRATIONS_ANTHROPIC_API_KEY`
|
||||
|
||||
Provider CLI flags are still supported for manual overrides:
|
||||
Provider CLI flags are still supported for manual overrides, but mass deployments should use env vars:
|
||||
|
||||
```bash
|
||||
pnpm dev -- \
|
||||
pnpm start -- \
|
||||
--openai-base-url "<ai-integrations-openai-base-url>" \
|
||||
--openai-api-key "<ai-integrations-openai-api-key>" \
|
||||
--anthropic-base-url "<ai-integrations-anthropic-base-url>" \
|
||||
|
||||
Reference in New Issue
Block a user