Skip to main content
  1. Write the handler and a server for it:
    server.ts
  2. Build it for Node (for example esbuild server.ts --bundle --platform=node --target=node22 --outfile=dist/server.js) and add a Dockerfile:
  3. Set the token, then deploy the service with the same value and unauthenticated access. Bijection authenticates with the target’s token, not with IAM:
  4. Bind the target to the service in the installation’s bindings file, then deploy:
    bindings.ts
    Set SCORING_URL with bijection env set SCORING_URL <url> before deploying. Replace the example host with the exact host returned by your provider.
One server can serve several targets. Pass serve({ "scoring.score": score, "scoring.explain": explain }) and give each target its own path: https://…/scoring.score.