Align Replit publish artifact commands

This commit is contained in:
hwhung
2026-05-07 17:05:36 +08:00
parent 0175ea028a
commit 563804439e
3 changed files with 16 additions and 11 deletions
+4 -4
View File
@@ -7,22 +7,22 @@ id = "random-proxy-simple"
[[services]]
localPort = 3000
name = "Random Proxy Simple"
paths = ["/", "/api", "/v1"]
paths = ["/"]
[services.development]
run = "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\""
[services.production.build]
args = ["sh", "-c", "cd random-proxy-simple && pnpm install --ignore-workspace && pnpm run build"]
args = ["sh", "-c", "cd random-proxy-simple && pnpm install --ignore-workspace && pnpm build"]
[services.production.build.env]
NODE_ENV = "production"
[services.production.run]
args = ["sh", "-c", "cd random-proxy-simple && node --enable-source-maps dist/index.mjs"]
args = ["node", "--enable-source-maps", "random-proxy-simple/dist/index.mjs"]
[services.production.run.env]
PORT = "8080"
PORT = "3000"
PROXY_API_KEY = "DEPLOYMENT_GENERATED_PROXY_TOKEN"
NODE_ENV = "production"
+2 -2
View File
@@ -19,8 +19,8 @@ pnpm install --ignore-workspace
```
The repo also includes `.replit-artifact/artifact.toml` so Replit Publish has an explicit
production build, run command, and `/api/healthz` startup health check when this repo is cloned
into `./random-proxy-simple`.
production build, run command on port `3000`, `paths = ["/"]`, and `/api/healthz` startup health
check when this repo is cloned into `./random-proxy-simple`.
## Install
+10 -5
View File
@@ -59,29 +59,34 @@ production run command. If it is missing or changed, restore this exact file con
[[services]]
localPort = 3000
name = "Random Proxy Simple"
paths = ["/", "/api", "/v1"]
paths = ["/"]
[services.development]
run = "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\""
[services.production.build]
args = ["sh", "-c", "cd random-proxy-simple && pnpm install --ignore-workspace && pnpm run build"]
args = ["sh", "-c", "cd random-proxy-simple && pnpm install --ignore-workspace && pnpm build"]
[services.production.build.env]
NODE_ENV = "production"
[services.production.run]
args = ["sh", "-c", "cd random-proxy-simple && node --enable-source-maps dist/index.mjs"]
args = ["node", "--enable-source-maps", "random-proxy-simple/dist/index.mjs"]
[services.production.run.env]
PORT = "8080"
PORT = "3000"
PROXY_API_KEY = "DEPLOYMENT_GENERATED_PROXY_TOKEN"
NODE_ENV = "production"
[services.production.health.startup]
path = "/api/healthz"
7. Do not run health, dashboard, model-list, or chat-completion verification commands.
7. If artifacts/mockup-sandbox/.replit-artifact/artifact.toml already exists in the Replit
workspace, keep it deployable as a static Vite artifact by using production publicDir
"artifacts/mockup-sandbox/dist" and static serving. Do not create or move this proxy repo into
artifacts/mockup-sandbox.
8. Do not run health, dashboard, model-list, or chat-completion verification commands.
Report only:
- local URL