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