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 = "/"
title = "Proxy Artifact"
version = "1.0.0"
id = "proxy-artifact"
id = "artifacts/proxy-artifact"
router = "path"
[[integratedSkills]]
name = "react-vite"
version = "1.0.0"
[[services]]
name = "web"
paths = ["/"]
localPort = 3000
paths = [ "/" ]
localPort = 26002
[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]
build = ["sh", "-c", "pnpm install --ignore-workspace && pnpm 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"]
build = [ "pnpm", "--filter", "proxy-artifact", "run", "build:fast" ]
run = [ "sh", "-c", "NODE_ENV=production node --enable-source-maps dist/index.mjs" ]
[services.env]
PORT = "3000"
PROXY_API_KEY = "dev-proxy-key"
PORT = "26002"
BASE_PATH = "/"