The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 22:00 UTC
fix(relay): run the relay Worker next to its database (#22065)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 20, 2026 at 10:14 UTC
758d773f578f168d8830c097f96f8400fdcdc5c4
1 file changed
+4
infra/relay/src/worker.ts
+4
@@ -118,6 +118,10 @@ export const layer = Api.make(
118
date: "2026-05-22",
119
flags: ["nodejs_compat"],
120
},
121
+ // Requests run several Postgres queries in sequence. At the user's edge
122
+ // each one paid the round trip to the database (~300 ms from JNB); next
123
+ // to PlanetScale `us-west` the request pays that distance once.
124
+ placement: { region: "aws:us-west-2" },
125
domain: relayPublicDomain,
126
})),
127
Effect.orDie,