26 lines
576 B
TOML
26 lines
576 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 run dev"
|
|
|
|
[services.production]
|
|
|
|
[services.production.build]
|
|
args = ["pnpm", "run", "build"]
|
|
|
|
[services.production.run]
|
|
# we don't run through pnpm to make startup faster in production
|
|
args = ["node", "--enable-source-maps", "dist/index.mjs"]
|
|
|
|
[services.production.health.startup]
|
|
path = "/api/healthz"
|