diff --git a/.replit-artifact/artifact.toml b/.replit-artifact/artifact.toml index 2086dc8..6b408f1 100644 --- a/.replit-artifact/artifact.toml +++ b/.replit-artifact/artifact.toml @@ -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" diff --git a/readme.md b/readme.md index 67bea53..8a66a8d 100644 --- a/readme.md +++ b/readme.md @@ -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 diff --git a/setup.md b/setup.md index 79caedd..66f8fb2 100644 --- a/setup.md +++ b/setup.md @@ -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