Skip to content

Commit 30b0512

Browse files
test(relay): keep the stage slug helper private
1 parent c1e279e commit 30b0512

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

‎infra/relay/src/deploymentConfig.test.ts‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,10 @@ import {
1111
RelayPublicDomainLabelTooLongError,
1212
relayPublicDomainForStage,
1313
relayResourceNameForStage,
14-
relayStageSlug,
1514
} from "./deploymentConfig.ts";
1615

1716
const isRelayPublicDomainLabelTooLongError = Schema.is(RelayPublicDomainLabelTooLongError);
1817

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-
2518
describe("relayPublicDomainForStage", () => {
2619
it("uses the canonical relay hostname for production", () => {
2720
expect(relayPublicDomainForStage("prod", ".example.com.")).toBe("relay.example.com");

‎infra/relay/src/deploymentConfig.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function appendDnsSafeSuffix(prefix: string, suffix: string): string {
5656
* Alchemy's physical-name helper sanitizes resource names after adding the
5757
* stage. Keep custom domains and runtime-created resources aligned with it.
5858
*/
59-
export function relayStageSlug(stage: string): string {
59+
function relayStageSlug(stage: string): string {
6060
return stage
6161
.toLowerCase()
6262
.replaceAll(/[^a-z0-9-]/g, "-")

0 commit comments

Comments
 (0)