@devries-cameron20 / t3code Mirror · read-only / commits / ac93fbfad0
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 24, 10:15 UTC

test(relay): keep the stage slug helper private (#9998)

Julius Marminge committed Sep 5, 2026 at 00:25 UTC ac93fbfad01ecd99f818d9964463afb6c35a8f4a
2 files changed +1 -8
infra/relay/src/deploymentConfig.test.ts
-7
@@ -11,17 +11,10 @@ import {
11 RelayPublicDomainLabelTooLongError,
12 relayPublicDomainForStage,
13 relayResourceNameForStage,
14 - relayStageSlug,
14 } from "./deploymentConfig.ts";
15
16 const isRelayPublicDomainLabelTooLongError = Schema.is(RelayPublicDomainLabelTooLongError);
17
19 -describe("relayStageSlug", () => {
20 - it("matches Alchemy physical-name sanitization for default developer stages", () => {
21 - expect(relayStageSlug("dev_julius")).toBe("dev-julius");
22 - });
23 -});
24 -
18 describe("relayPublicDomainForStage", () => {
19 it("uses the canonical relay hostname for production", () => {
20 expect(relayPublicDomainForStage("prod", ".example.com.")).toBe("relay.example.com");
infra/relay/src/deploymentConfig.ts
+1 -1
@@ -56,7 +56,7 @@ function appendDnsSafeSuffix(prefix: string, suffix: string): string {
56 * Alchemy's physical-name helper sanitizes resource names after adding the
57 * stage. Keep custom domains and runtime-created resources aligned with it.
58 */
59 -export function relayStageSlug(stage: string): string {
59 +function relayStageSlug(stage: string): string {
60 return stage
61 .toLowerCase()
62 .replaceAll(/[^a-z0-9-]/g, "-")