Identity and location
The path prefix this service serves, on the app’s single hostname.Path routing rather than a hostname each: same origin means no CORS, and
nothing to bake into a frontend bundle at build time.
What it is
The interpreter or SDK this service needs —
python3.12, node22, java21.Declared rather than detected, because the platform has exactly one version of
each and the app is the only thing that knows which it was written against.
Without it the pipeline notices a mismatch, logs that the build will probably
fail on it, and builds anyway.One token that lets Bay inject proxy-awareness —
ALLOWED_HOSTS for Django,
basePath for Next, ROOT_PATH for FastAPI.Not decoration and not detection-as-a-service: an app behind a TLS-terminating
proxy cannot configure itself for a proxy it has no way to know exists, so
somebody has to say which mapping applies, and only the app knows.The phases
One-shot steps that run once per deploy, before any traffic — migrations,
above all.Separate from
start because folding a migration into the start command
re-runs it on every cold start and every scale-out instance, concurrently.
Prisma takes an advisory lock and survives that; Alembic does not.What this service runs beyond one web process — workers and crons, keyed by
name. See Processes.
Static services
Serve
index.html for a path that matches no file.Without it a React Router app 404s on a refresh at /about — and nothing in
the config can infer this, because the same directory is a correct answer for a
multi-page site and a broken one for an SPA.Bringing your own image
Values
Baked into the bundle at build time and useless at runtime —
VITE_*,
NEXT_PUBLIC_*. A separate field because they are set at a different moment:
setting them after the build means the build ran without them and the value
never reached the shipped JavaScript.Secret names, never values. Enforced: a name declared here and missing at
deploy time fails before the build, rather than at runtime.
Which shared resources this service receives credentials for. This is the unit
that per-app database isolation is scoped to.
Health and size
{ "path": "/", "expect": 200 }. What “the app responds” means — so success
stops meaning “the process did not exit”.