@devries-cameron20 / t3code Mirror · read-only
Fork 0

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 21, 07:15 UTC

main
ts 15 lines 652 Bytes
Raw
1 /**
2 * Name of a Hyperdrive configuration the lookup tests create out-of-band
3 * (directly through distilled, standing in for a dashboard-created config).
4 * Per-user so concurrent runs on the shared test account don't collide.
5 * Only read at deploy time — the deployed Worker addresses the binding by
6 * the lookup id — so the runtime fallback is never used.
7 */
8 export const lookupConfigName = (suite: "live" | "local") =>
9 `alchemy-test-hd-lookup-${suite}-${(
10 (typeof process === "undefined"
11 ? undefined
12 : (process.env.ALCHEMY_TEST_STAGE ?? process.env.USER)) ?? "ci"
13 )
14 .toLowerCase()
15 .replace(/[^a-z0-9-]/g, "-")}`;