deployable.unserved
No deployable serves an API, or runs the background work, the app has.
Area 14, Tools; not declinable; the next step is usually the agent's.
Once deployables: is declared, an API's routes are served only by a
deployable that names it, and background work runs only where its
trigger is listed, so nothing the app declares is left unserved. The
desk's backstage API has a route:
use desk/types { Echoed, Remark }use desk/actions { echo }/// The desk backstage.routes Backstage { prefix: /backstage api: backstage /// Says it back. POST / { authentication: RouteAuthentication.none input: Remark output: Echoed run: echo(input) }}
but the one deployable serves only main:
application { apis: { main: { prefix: / } backstage: { prefix: /backstage } } deployables: { kiosk: { serves: [main] target: Target.native } }}
error No deployable serves the API backstage
--> app.jadpo:10:5
|10 | deployables: { | ^^^^^^^^^^^ none serves it
- reason
- Once
deployables:is declared, an API's routes are served only by a deployable whoseserves:names it, andbackstagehas 1 route. - next
- Add
backstageto a deployable'sserves:(agent) - rule
- deployable.
unserved - help
- https://jadpo.
dev/docs/errors/deployable. unserved
Markdown for agents: /docs/errors/deployable.unserved.md.Built from Jadpo main at aee2e8f.