mirror of
https://github.com/Xevion/xevion.dev.git
synced 2025-12-06 19:17:04 -06:00
15 lines
334 B
TypeScript
15 lines
334 B
TypeScript
import { Context } from "@/server/trpc/context";
|
|
import { initTRPC } from "@trpc/server";
|
|
import superjson from "superjson";
|
|
|
|
const t = initTRPC.context<Context>().create({
|
|
transformer: superjson,
|
|
errorFormatter({ shape }) {
|
|
return shape;
|
|
},
|
|
});
|
|
|
|
export const router = t.router;
|
|
|
|
export const publicProcedure = t.procedure;
|