We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d531c2 commit 16e5293Copy full SHA for 16e5293
src/content/docs/containers/examples/container-backend.mdx
@@ -150,7 +150,7 @@ export default {
150
const url = new URL(request.url);
151
if (url.pathname.startsWith("/api")) {
152
// note: "getRandom" to be replaced with latency-aware routing in the near future
153
- const containerInstance = getRandom(env.BACKEND, INSTANCE_COUNT);
+ const containerInstance = await getRandom(env.BACKEND, INSTANCE_COUNT);
154
return containerInstance.fetch(request);
155
}
156
0 commit comments