From ae82bc893b731e74e725ec3bcca21dced1bb3f81 Mon Sep 17 00:00:00 2001 From: hwhung Date: Thu, 7 May 2026 19:57:12 +0800 Subject: [PATCH] Match Replit web artifact config --- .replit-artifact/artifact.toml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.replit-artifact/artifact.toml b/.replit-artifact/artifact.toml index 9066ada..30ac21a 100644 --- a/.replit-artifact/artifact.toml +++ b/.replit-artifact/artifact.toml @@ -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 = "/"