"use server";import { createServerSideHelpers } from "@trpc/react-query/server";import { appRouter } from "./root";import { createTRPCContext } from "./trpc";import SuperJSON from "superjson";import { createContext } from "@/trpc/server";/** * SSR helpers (for prefetching data on the server) * https://trpc.io/docs/client/nextjs/server-side-helpers */export const createSSRHelper = async () => createServerSideHelpers({ router: appRouter, ctx: await createContext(), transformer: SuperJSON, });