id: static-frontend-and-routed-api-frontend
name: Static frontend
deployment:
type: static
context: .
output: dist
buildCommand:
- npm
- run
- build
nodeImage: node:24-alpine@sha256:50c8e8ca1d27439048670df5883f32d57cf81cff6233222c893fd0d9884cbd81
runtimeImage: nginxinc/nginx-unprivileged@sha256:27985295bdb22a1ef8f712863210bd5877c0f3006494a593e86b3fe0fa55467e
spaFallback: true
headers:
Cache-Control: public, max-age=300
X-Content-Type-Options: nosniff
container:
port: 8080
health:
path: /
environments:
production:
server: 192.0.2.10
domains:
primary: app.example.com
tls:
mode: direct