File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,8 +23,14 @@ export const RelayDeploymentConfig = Effect.gen(function* () {
2323 const { stage } = yield * Alchemy . Stack ;
2424 const relayApiZoneName = yield * Config . nonEmptyString ( "RELAY_API_ZONE_NAME" ) ;
2525 const managedEndpointZoneName = yield * Config . nonEmptyString ( "RELAY_TUNNEL_ZONE_NAME" ) ;
26- const relayPublicDomainOverride = yield * Config . nonEmptyString ( "RELAY_DOMAIN" ) . pipe (
26+ const relayPublicDomainOverride = yield * Config . string ( "RELAY_DOMAIN" ) . pipe (
2727 Config . option ,
28+ Config . map (
29+ Option . flatMap ( ( value ) => {
30+ const trimmed = value . trim ( ) ;
31+ return trimmed ? Option . some ( trimmed ) : Option . none ( ) ;
32+ } ) ,
33+ ) ,
2834 ) ;
2935 const relayPublicDomain = Option . getOrElse ( relayPublicDomainOverride , ( ) =>
3036 relayPublicDomainForStage ( stage , relayApiZoneName ) ,
You can’t perform that action at this time.
0 commit comments