Match Replit web artifact config

This commit is contained in:
hwhung
2026-05-07 19:57:12 +08:00
parent 8c68a30044
commit ae82bc893b
+11 -8
View File
@@ -2,22 +2,25 @@ kind = "web"
previewPath = "/" previewPath = "/"
title = "Proxy Artifact" title = "Proxy Artifact"
version = "1.0.0" version = "1.0.0"
id = "proxy-artifact" id = "artifacts/proxy-artifact"
router = "path" router = "path"
[[integratedSkills]]
name = "react-vite"
version = "1.0.0"
[[services]] [[services]]
name = "web" name = "web"
paths = ["/"] paths = [ "/" ]
localPort = 3000 localPort = 26002
[services.development] [services.development]
run = "PORT=${PORT:-3000} PROXY_API_KEY=${PROXY_API_KEY:-dev-proxy-key} pnpm prod" run = "pnpm --filter proxy-artifact run prod"
[services.production] [services.production]
build = ["sh", "-c", "pnpm install --ignore-workspace && pnpm build:fast"] build = [ "pnpm", "--filter", "proxy-artifact", "run", "build:fast" ]
run = ["sh", "-c", "PORT=${PORT:-3000} PROXY_API_KEY=${PROXY_API_KEY:-dev-proxy-key} NODE_ENV=production node --enable-source-maps dist/index.mjs"] run = [ "sh", "-c", "NODE_ENV=production node --enable-source-maps dist/index.mjs" ]
[services.env] [services.env]
PORT = "3000" PORT = "26002"
PROXY_API_KEY = "dev-proxy-key"
BASE_PATH = "/" BASE_PATH = "/"