From 23618d45bb33f357f1d0da162242ae833c1e84a3 Mon Sep 17 00:00:00 2001 From: Nathan Flurry Date: Mon, 22 Dec 2025 19:05:07 -0700 Subject: [PATCH] fix(rivetkit): fix `c.client` not respecting correct origin --- .../packages/rivetkit/src/manager/router.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/rivetkit-typescript/packages/rivetkit/src/manager/router.ts b/rivetkit-typescript/packages/rivetkit/src/manager/router.ts index db63cf164b..36dc2d9be5 100644 --- a/rivetkit-typescript/packages/rivetkit/src/manager/router.ts +++ b/rivetkit-typescript/packages/rivetkit/src/manager/router.ts @@ -165,9 +165,7 @@ export function buildManagerRouter( } else { // If no name is provided, try all registered actor types // Actor IDs are globally unique, so we'll find it in one of them - for (const actorName of Object.keys( - config.use, - )) { + for (const actorName of Object.keys(config.use)) { const actorOutput = await managerDriver.getForId({ c, @@ -437,7 +435,9 @@ export function buildManagerRouter( params, ); - return await createTestWebSocketProxy(clientToProxyWsPromise); + return await createTestWebSocketProxy( + clientToProxyWsPromise, + ); })(c, noopNext()); }); @@ -555,10 +555,7 @@ export function buildManagerRouter( handleMetadataRequest(c, config, { normal: {} }, undefined), ); - managerDriver.modifyManagerRouter?.( - config, - router as unknown as Hono, - ); + managerDriver.modifyManagerRouter?.(config, router as unknown as Hono); }); }