Initial proxy artifact

This commit is contained in:
hwhung
2026-05-07 19:13:04 +08:00
commit 8c68a30044
20 changed files with 1309 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
kind = "web"
previewPath = "/"
title = "Proxy Artifact"
version = "1.0.0"
id = "proxy-artifact"
router = "path"
[[services]]
name = "web"
paths = ["/"]
localPort = 3000
[services.development]
run = "PORT=${PORT:-3000} PROXY_API_KEY=${PROXY_API_KEY:-dev-proxy-key} pnpm 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"]
[services.env]
PORT = "3000"
PROXY_API_KEY = "dev-proxy-key"
BASE_PATH = "/"