Skip to content

Commit 43ca74c

Browse files
authored
fix(desktop): register integration router in main trpc assembly
The HostRouter type declares an `integration` route, but the desktop app's trpcRouter assembly did not serve it, tripping the servesEveryHostRoute compile-time guard and failing typecheck. Generated-By: PostHog Code Task-Id: 9fd73e57-6627-4884-bb0e-953cc4fa6b33
1 parent bbc6670 commit 43ca74c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/code/src/main/trpc/router.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { gitRouter } from "@posthog/host-router/routers/git.router";
2626
import { githubIntegrationRouter } from "@posthog/host-router/routers/github-integration.router";
2727
import { githubReleasesRouter } from "@posthog/host-router/routers/github-releases.router";
2828
import { handoffRouter } from "@posthog/host-router/routers/handoff.router";
29+
import { integrationRouter } from "@posthog/host-router/routers/integration.router";
2930
import { linearIntegrationRouter } from "@posthog/host-router/routers/linear-integration.router";
3031
import { llmGatewayRouter } from "@posthog/host-router/routers/llm-gateway.router";
3132
import { localMcpRouter } from "@posthog/host-router/routers/local-mcp.router";
@@ -87,6 +88,7 @@ export const trpcRouter = router({
8788
githubIntegration: githubIntegrationRouter,
8889
githubReleases: githubReleasesRouter,
8990
handoff: handoffRouter,
91+
integration: integrationRouter,
9092
linearIntegration: linearIntegrationRouter,
9193
llmGateway: llmGatewayRouter,
9294
localMcp: localMcpRouter,

0 commit comments

Comments
 (0)