Align Replit publish artifact commands
This commit is contained in:
@@ -7,22 +7,22 @@ id = "random-proxy-simple"
|
|||||||
[[services]]
|
[[services]]
|
||||||
localPort = 3000
|
localPort = 3000
|
||||||
name = "Random Proxy Simple"
|
name = "Random Proxy Simple"
|
||||||
paths = ["/", "/api", "/v1"]
|
paths = ["/"]
|
||||||
|
|
||||||
[services.development]
|
[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\""
|
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]
|
[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]
|
[services.production.build.env]
|
||||||
NODE_ENV = "production"
|
NODE_ENV = "production"
|
||||||
|
|
||||||
[services.production.run]
|
[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]
|
[services.production.run.env]
|
||||||
PORT = "8080"
|
PORT = "3000"
|
||||||
PROXY_API_KEY = "DEPLOYMENT_GENERATED_PROXY_TOKEN"
|
PROXY_API_KEY = "DEPLOYMENT_GENERATED_PROXY_TOKEN"
|
||||||
NODE_ENV = "production"
|
NODE_ENV = "production"
|
||||||
|
|
||||||
|
|||||||
@@ -19,8 +19,8 @@ pnpm install --ignore-workspace
|
|||||||
```
|
```
|
||||||
|
|
||||||
The repo also includes `.replit-artifact/artifact.toml` so Replit Publish has an explicit
|
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
|
production build, run command on port `3000`, `paths = ["/"]`, and `/api/healthz` startup health
|
||||||
into `./random-proxy-simple`.
|
check when this repo is cloned into `./random-proxy-simple`.
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
|
|||||||
@@ -59,29 +59,34 @@ production run command. If it is missing or changed, restore this exact file con
|
|||||||
[[services]]
|
[[services]]
|
||||||
localPort = 3000
|
localPort = 3000
|
||||||
name = "Random Proxy Simple"
|
name = "Random Proxy Simple"
|
||||||
paths = ["/", "/api", "/v1"]
|
paths = ["/"]
|
||||||
|
|
||||||
[services.development]
|
[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\""
|
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]
|
[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]
|
[services.production.build.env]
|
||||||
NODE_ENV = "production"
|
NODE_ENV = "production"
|
||||||
|
|
||||||
[services.production.run]
|
[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]
|
[services.production.run.env]
|
||||||
PORT = "8080"
|
PORT = "3000"
|
||||||
PROXY_API_KEY = "DEPLOYMENT_GENERATED_PROXY_TOKEN"
|
PROXY_API_KEY = "DEPLOYMENT_GENERATED_PROXY_TOKEN"
|
||||||
NODE_ENV = "production"
|
NODE_ENV = "production"
|
||||||
|
|
||||||
[services.production.health.startup]
|
[services.production.health.startup]
|
||||||
path = "/api/healthz"
|
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:
|
Report only:
|
||||||
- local URL
|
- local URL
|
||||||
|
|||||||
Reference in New Issue
Block a user