Use fast build for Replit deployment

This commit is contained in:
hwhung
2026-05-07 18:23:59 +08:00
parent c927ac8282
commit 63a5db2a86
5 changed files with 12 additions and 10 deletions
+2 -2
View File
@@ -44,14 +44,14 @@ skills:
4. Create the smallest persistent workflow named "Random Proxy Simple" with this exact run command:
cd random-proxy-simple && pnpm dev -- --host 0.0.0.0 --port 3000 --proxy-api-key DEPLOYMENT_GENERATED_PROXY_TOKEN --openai-base-url "$AI_INTEGRATIONS_OPENAI_BASE_URL" --openai-api-key "$AI_INTEGRATIONS_OPENAI_API_KEY" --anthropic-base-url "$AI_INTEGRATIONS_ANTHROPIC_BASE_URL" --anthropic-api-key "$AI_INTEGRATIONS_ANTHROPIC_API_KEY"
cd /home/runner/workspace/random-proxy-simple && node build.mjs && PORT=3000 PROXY_API_KEY=DEPLOYMENT_GENERATED_PROXY_TOKEN node --enable-source-maps dist/index.mjs
5. Start/restart that workflow once.
6. Configure the workspace root .replit [deployment] section exactly like this:
[deployment]
build = ["sh", "-c", "cd random-proxy-simple && pnpm install --ignore-workspace && pnpm build"]
build = ["sh", "-c", "cd random-proxy-simple && pnpm install --ignore-workspace && pnpm build:fast"]
run = ["sh", "-c", "cd random-proxy-simple && PORT=3000 PROXY_API_KEY=DEPLOYMENT_GENERATED_PROXY_TOKEN NODE_ENV=production node --enable-source-maps dist/index.mjs"]
7. If artifacts/mockup-sandbox exists in the Replit workspace, leave it as-is. Do not create,