Skip to content

Open-source status page, incident response and uptime monitoring

459 B
Raw Blame
import "server-only";
import { createServerHelpers } from "@openstatus/api/src/rsc";

import { auth } from "../auth";
import { makeQueryClient } from "./query-client";

export const {
  trpc,
  getQueryClient,
  HydrateClient,
  prefetch,
  batchPrefetch,
  fetchQueryOrNotFound,
} = createServerHelpers({
  // Lazy: `../auth` imports this module, so referencing `auth` eagerly would
  // hit a circular-init TDZ.
  makeQueryClient,
  auth: () => auth(),
});