aebedfc52e
Adds an API server with proxy routes for OpenAI and Anthropic clients, along with a frontend portal to interact with the API. Replit-Commit-Author: Agent Replit-Commit-Session-Id: dcd090ca-935a-42ae-8db4-503e1bbe165a Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 61b72c06-3c4d-47af-a97e-9d527892d9c5 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/40608c50-a053-47e8-aa03-1bdcc1a2698b/dcd090ca-935a-42ae-8db4-503e1bbe165a/ZBSB1hW Replit-Helium-Checkpoint-Created: true
33 lines
791 B
TOML
33 lines
791 B
TOML
kind = "api"
|
|
previewPath = "/api" # TODO - should be excluded from preview in the first place
|
|
title = "API Server"
|
|
version = "1.0.0"
|
|
id = "3B4_FFSkEVBkAeYMFRJ2e"
|
|
|
|
[[services]]
|
|
localPort = 8080
|
|
name = "API Server"
|
|
paths = ["/api", "/v1"]
|
|
|
|
[services.development]
|
|
run = "pnpm --filter @workspace/api-server run dev"
|
|
|
|
[services.production]
|
|
|
|
[services.production.build]
|
|
args = ["pnpm", "--filter", "@workspace/api-server", "run", "build"]
|
|
|
|
[services.production.build.env]
|
|
NODE_ENV = "production"
|
|
|
|
[services.production.run]
|
|
# we don't run through pnpm to make startup faster in production
|
|
args = ["node", "--enable-source-maps", "artifacts/api-server/dist/index.mjs"]
|
|
|
|
[services.production.run.env]
|
|
PORT = "8080"
|
|
NODE_ENV = "production"
|
|
|
|
[services.production.health.startup]
|
|
path = "/api/healthz"
|