Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
633 B ยท 22 lines
TypeScript
1234567891011121314151617181920212223import type { AppRouter } from "@openstatus/api";import { createTRPCClient } from "@trpc/client";import { headers } from "next/headers";
import { endingLink, sentryLoggerLink } from "./shared";
export const api = createTRPCClient<AppRouter>({ links: [ sentryLoggerLink(), endingLink({ headers: async () => { const h = new Map(await headers()); h.delete("connection"); h.delete("transfer-encoding"); h.set("x-trpc-source", "server"); return Object.fromEntries(h.entries()); }, }), ],});
export { type RouterInputs, type RouterOutputs } from "@openstatus/api";