File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
rivetkit-typescript/packages/rivetkit/src/common Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 77} from "@/actor/router-endpoints" ;
88import { buildActorNames , type RegistryConfig } from "@/registry/config" ;
99import type { RunnerConfig } from "@/registry/run-config" ;
10- import { getEndpoint } from "@/remote-manager-driver/api-utils" ;
1110import type * as protocol from "@/schemas/client-protocol/mod" ;
1211import { HTTP_RESPONSE_ERROR_VERSIONED } from "@/schemas/client-protocol/versioned" ;
1312import {
@@ -139,12 +138,10 @@ export function handleMetadataRequest(
139138 : { normal : { } } ,
140139 } ,
141140 actorNames : buildActorNames ( registryConfig ) ,
142- // Do not return client endpoint if default server disabled
143- clientEndpoint :
144- runConfig . overrideServerAddress ??
145- ( runConfig . disableDefaultServer
146- ? undefined
147- : getEndpoint ( runConfig ) ) ,
141+ // If server address is changed, return a different client endpoint.
142+ // Otherwise, return null indicating the client should use the current
143+ // endpoint it's already configured with.
144+ clientEndpoint : runConfig . overrideServerAddress ,
148145 } ;
149146
150147 return c . json ( response ) ;
You can’t perform that action at this time.
0 commit comments