[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-trpc-server-setup":3,"mdc--tmy5b8-key":39,"related-org-trpc-server-setup":6589,"related-repo-trpc-server-setup":6748},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":34,"sourceUrl":37,"mdContent":38},"server-setup","initialize and configure tRPC servers","Initialize tRPC with initTRPC.create(), define routers with t.router(), create procedures with .query()\u002F.mutation()\u002F.subscription(), configure context with createContext(), export AppRouter type, merge routers with t.mergeRouters(), lazy-load routers with lazy().\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"trpc","tRPC","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Ftrpc.png",[12,16,19,20],{"name":13,"slug":14,"type":15},"Backend","backend","tag",{"name":17,"slug":18,"type":15},"TypeScript","typescript",{"name":9,"slug":8,"type":15},{"name":21,"slug":22,"type":15},"API Development","api-development",40424,"https:\u002F\u002Fgithub.com\u002Ftrpc\u002Ftrpc","2026-07-18T05:46:49.599216",null,1636,[29,30,31,32,33,18],"api","next","nextjs","prisma","react",{"repoUrl":24,"stars":23,"forks":27,"topics":35,"description":36},[29,30,31,32,33,18],"🧙‍♀️  Move Fast and Break Nothing. End-to-end typesafe APIs made easy. ","https:\u002F\u002Fgithub.com\u002Ftrpc\u002Ftrpc\u002Ftree\u002FHEAD\u002Fpackages\u002Fserver\u002Fskills\u002Fserver-setup","---\nname: server-setup\ndescription: >\n  Initialize tRPC with initTRPC.create(), define routers with t.router(),\n  create procedures with .query()\u002F.mutation()\u002F.subscription(), configure context\n  with createContext(), export AppRouter type, merge routers with t.mergeRouters(),\n  lazy-load routers with lazy().\ntype: core\nlibrary: trpc\nlibrary_version: '11.16.0'\nrequires: []\nsources:\n  - 'trpc\u002Ftrpc:www\u002Fdocs\u002Fserver\u002Foverview.md'\n  - 'trpc\u002Ftrpc:www\u002Fdocs\u002Fserver\u002Frouters.md'\n  - 'trpc\u002Ftrpc:www\u002Fdocs\u002Fserver\u002Fprocedures.md'\n  - 'trpc\u002Ftrpc:www\u002Fdocs\u002Fserver\u002Fcontext.md'\n  - 'trpc\u002Ftrpc:www\u002Fdocs\u002Fserver\u002Fmerging-routers.md'\n  - 'trpc\u002Ftrpc:www\u002Fdocs\u002Fmain\u002Fquickstart.mdx'\n  - 'trpc\u002Ftrpc:packages\u002Fserver\u002Fsrc\u002Funstable-core-do-not-import\u002FinitTRPC.ts'\n  - 'trpc\u002Ftrpc:packages\u002Fserver\u002Fsrc\u002Funstable-core-do-not-import\u002Frouter.ts'\n---\n\n# tRPC -- Server Setup\n\n## Setup\n\n```ts\n\u002F\u002F server\u002Ftrpc.ts\nimport { initTRPC } from '@trpc\u002Fserver';\n\nconst t = initTRPC.create();\n\nexport const router = t.router;\nexport const publicProcedure = t.procedure;\n```\n\n```ts\n\u002F\u002F server\u002FappRouter.ts\nimport { z } from 'zod';\nimport { publicProcedure, router } from '.\u002Ftrpc';\n\ntype User = { id: string; name: string };\n\nexport const appRouter = router({\n  userList: publicProcedure.query(async (): Promise\u003CUser[]> => {\n    return [{ id: '1', name: 'Katt' }];\n  }),\n  userById: publicProcedure\n    .input(z.string())\n    .query(async ({ input }): Promise\u003CUser> => {\n      return { id: input, name: 'Katt' };\n    }),\n  userCreate: publicProcedure\n    .input(z.object({ name: z.string() }))\n    .mutation(async ({ input }): Promise\u003CUser> => {\n      return { id: '1', ...input };\n    }),\n});\n\nexport type AppRouter = typeof appRouter;\n```\n\n```ts\n\u002F\u002F server\u002Findex.ts\nimport { createHTTPServer } from '@trpc\u002Fserver\u002Fadapters\u002Fstandalone';\nimport { appRouter } from '.\u002FappRouter';\n\nconst server = createHTTPServer({ router: appRouter });\nserver.listen(3000);\n```\n\n## Core Patterns\n\n### Context with typed session\n\n```ts\n\u002F\u002F server\u002Fcontext.ts\nimport type { CreateHTTPContextOptions } from '@trpc\u002Fserver\u002Fadapters\u002Fstandalone';\n\nexport async function createContext(opts: CreateHTTPContextOptions) {\n  const token = opts.req.headers['authorization'];\n  return { token };\n}\n\nexport type Context = Awaited\u003CReturnType\u003Ctypeof createContext>>;\n```\n\n```ts\n\u002F\u002F server\u002Ftrpc.ts\nimport { initTRPC } from '@trpc\u002Fserver';\nimport type { Context } from '.\u002Fcontext';\n\nconst t = initTRPC.context\u003CContext>().create();\n\nexport const router = t.router;\nexport const publicProcedure = t.procedure;\n```\n\n```ts\n\u002F\u002F server\u002Findex.ts\nimport { createHTTPServer } from '@trpc\u002Fserver\u002Fadapters\u002Fstandalone';\nimport { appRouter } from '.\u002FappRouter';\nimport { createContext } from '.\u002Fcontext';\n\nconst server = createHTTPServer({\n  router: appRouter,\n  createContext,\n});\nserver.listen(3000);\n```\n\n### Inner\u002Fouter context split for testability\n\n```ts\n\u002F\u002F server\u002Fcontext.ts\nimport type { CreateHTTPContextOptions } from '@trpc\u002Fserver\u002Fadapters\u002Fstandalone';\nimport { db } from '.\u002Fdb';\n\ninterface CreateInnerContextOptions {\n  session: { user: { email: string } } | null;\n}\n\nexport async function createContextInner(opts?: CreateInnerContextOptions) {\n  return {\n    db,\n    session: opts?.session ?? null,\n  };\n}\n\nexport async function createContext(opts: CreateHTTPContextOptions) {\n  const session = getSessionFromCookie(opts.req);\n  const contextInner = await createContextInner({ session });\n  return {\n    ...contextInner,\n    req: opts.req,\n    res: opts.res,\n  };\n}\n\nexport type Context = Awaited\u003CReturnType\u003Ctypeof createContextInner>>;\n```\n\nInfer `Context` from `createContextInner` so server-side callers and tests never need HTTP request objects.\n\n### Merging child routers\n\n```ts\n\u002F\u002F server\u002Frouters\u002Fuser.ts\nimport { publicProcedure, router } from '..\u002Ftrpc';\n\nexport const userRouter = router({\n  list: publicProcedure.query(() => []),\n});\n```\n\n```ts\n\u002F\u002F server\u002Frouters\u002Fpost.ts\nimport { z } from 'zod';\nimport { publicProcedure, router } from '..\u002Ftrpc';\n\nexport const postRouter = router({\n  create: publicProcedure\n    .input(z.object({ title: z.string() }))\n    .mutation(({ input }) => ({ id: '1', ...input })),\n  list: publicProcedure.query(() => []),\n});\n```\n\n```ts\n\u002F\u002F server\u002Frouters\u002F_app.ts\nimport { router } from '..\u002Ftrpc';\nimport { postRouter } from '.\u002Fpost';\nimport { userRouter } from '.\u002Fuser';\n\nexport const appRouter = router({\n  user: userRouter,\n  post: postRouter,\n});\n\nexport type AppRouter = typeof appRouter;\n```\n\n### Lazy-loaded routers for serverless cold starts\n\n```ts\n\u002F\u002F server\u002Frouters\u002F_app.ts\nimport { lazy } from '@trpc\u002Fserver';\nimport { router } from '..\u002Ftrpc';\n\nexport const appRouter = router({\n  \u002F\u002F Short-hand when the module has exactly one router exported\n  greeting: lazy(() => import('.\u002Fgreeting.js')),\n  \u002F\u002F Use .then() to pick a named export when the module exports multiple routers\n  user: lazy(() => import('.\u002Fuser.js').then((m) => m.userRouter)),\n});\n\nexport type AppRouter = typeof appRouter;\n```\n\n## Common Mistakes\n\n### [CRITICAL] Calling initTRPC.create() more than once\n\nWrong:\n\n```ts\n\u002F\u002F file: userRouter.ts\nimport { initTRPC } from '@trpc\u002Fserver';\nconst t = initTRPC.create();\nexport const userRouter = t.router({});\n\n\u002F\u002F file: postRouter.ts\nimport { initTRPC } from '@trpc\u002Fserver';\nconst t2 = initTRPC.create();\nexport const postRouter = t2.router({});\n```\n\nCorrect:\n\n```ts\n\u002F\u002F file: trpc.ts (single file, created once)\nimport { initTRPC } from '@trpc\u002Fserver';\nimport type { Context } from '.\u002Fcontext';\n\nconst t = initTRPC.context\u003CContext>().create();\n\nexport const router = t.router;\nexport const publicProcedure = t.procedure;\n```\n\nMultiple tRPC instances cause type mismatches and runtime errors when routers from different instances are merged.\n\nSource: www\u002Fdocs\u002Fserver\u002Frouters.md\n\n### [HIGH] Using reserved words as procedure names\n\nWrong:\n\n```ts\nimport { publicProcedure, router } from '.\u002Ftrpc';\n\nconst appRouter = router({\n  then: publicProcedure.query(() => 'hello'),\n});\n```\n\nCorrect:\n\n```ts\nimport { publicProcedure, router } from '.\u002Ftrpc';\n\nconst appRouter = router({\n  next: publicProcedure.query(() => 'hello'),\n});\n```\n\nRouter creation throws if procedure names are \"then\", \"call\", or \"apply\" because these conflict with JavaScript Proxy internals.\n\nSource: packages\u002Fserver\u002Fsrc\u002Funstable-core-do-not-import\u002Frouter.ts\n\n### [CRITICAL] Importing AppRouter as a value import\n\nWrong:\n\n```ts\n\u002F\u002F client.ts\nimport { AppRouter } from '..\u002Fserver\u002Frouter';\n```\n\nCorrect:\n\n```ts\n\u002F\u002F client.ts\nimport type { AppRouter } from '..\u002Fserver\u002Frouter';\n```\n\nA non-type import pulls the entire server bundle into the client; use `import type` so it is stripped at build time.\n\nSource: www\u002Fdocs\u002Fserver\u002Frouters.md\n\n### [MEDIUM] Creating context without inner\u002Fouter split\n\nWrong:\n\n```ts\nimport type { CreateExpressContextOptions } from '@trpc\u002Fserver\u002Fadapters\u002Fexpress';\n\nexport function createContext({ req }: CreateExpressContextOptions) {\n  return { db: prisma, user: getUserFromReq(req) };\n}\n```\n\nCorrect:\n\n```ts\nimport type { CreateExpressContextOptions } from '@trpc\u002Fserver\u002Fadapters\u002Fexpress';\n\nexport function createContextInner(opts: { user?: User }) {\n  return { db: prisma, user: opts.user ?? null };\n}\n\nexport function createContext({ req }: CreateExpressContextOptions) {\n  return createContextInner({ user: getUserFromReq(req) });\n}\n```\n\nWithout an inner context factory, server-side callers and tests must construct HTTP request objects to get context.\n\nSource: www\u002Fdocs\u002Fserver\u002Fcontext.md\n\n### [HIGH] Merging routers with different transformers\n\nWrong:\n\n```ts\nimport { initTRPC } from '@trpc\u002Fserver';\nimport superjson from 'superjson';\n\nconst t1 = initTRPC.create({ transformer: superjson });\nconst t2 = initTRPC.create();\n\nconst router1 = t1.router({ a: t1.procedure.query(() => 'a') });\nconst router2 = t2.router({ b: t2.procedure.query(() => 'b') });\n\nt1.mergeRouters(router1, router2);\n```\n\nCorrect:\n\n```ts\nimport { initTRPC } from '@trpc\u002Fserver';\nimport superjson from 'superjson';\n\nconst t = initTRPC.create({ transformer: superjson });\n\nconst router1 = t.router({ a: t.procedure.query(() => 'a') });\nconst router2 = t.router({ b: t.procedure.query(() => 'b') });\n\nt.mergeRouters(router1, router2);\n```\n\n`t.mergeRouters()` throws at runtime if the routers were created with different transformer or errorFormatter configurations.\n\nSource: packages\u002Fserver\u002Fsrc\u002Funstable-core-do-not-import\u002Frouter.ts\n\n### [CRITICAL] Importing appRouter value into client code\n\nWrong:\n\n```ts\n\u002F\u002F client.ts\nimport { appRouter } from '..\u002Fserver\u002Frouter';\n\ntype AppRouter = typeof appRouter;\n```\n\nCorrect:\n\n```ts\n\u002F\u002F client.ts\nimport type { AppRouter } from '..\u002Fserver\u002Frouter';\n\n\u002F\u002F server\u002Frouter.ts\nexport type AppRouter = typeof appRouter;\n```\n\nImporting the appRouter value bundles the entire server into the client, even if you only use `typeof`.\n\nSource: www\u002Fdocs\u002Fserver\u002Frouters.md\n\n## See Also\n\n- `middlewares` -- add auth, logging, context extension to procedures\n- `validators` -- add input\u002Foutput validation with Zod\n- `error-handling` -- throw and format typed errors\n- `server-side-calls` -- call procedures from server code\n- `adapter-standalone` -- mount on Node.js HTTP server\n- `adapter-fetch` -- mount on edge runtimes\n",{"data":40,"body":53},{"name":4,"description":6,"type":41,"library":8,"library_version":42,"requires":43,"sources":44},"core","11.16.0",[],[45,46,47,48,49,50,51,52],"trpc\u002Ftrpc:www\u002Fdocs\u002Fserver\u002Foverview.md","trpc\u002Ftrpc:www\u002Fdocs\u002Fserver\u002Frouters.md","trpc\u002Ftrpc:www\u002Fdocs\u002Fserver\u002Fprocedures.md","trpc\u002Ftrpc:www\u002Fdocs\u002Fserver\u002Fcontext.md","trpc\u002Ftrpc:www\u002Fdocs\u002Fserver\u002Fmerging-routers.md","trpc\u002Ftrpc:www\u002Fdocs\u002Fmain\u002Fquickstart.mdx","trpc\u002Ftrpc:packages\u002Fserver\u002Fsrc\u002Funstable-core-do-not-import\u002FinitTRPC.ts","trpc\u002Ftrpc:packages\u002Fserver\u002Fsrc\u002Funstable-core-do-not-import\u002Frouter.ts",{"type":54,"children":55},"root",[56,65,72,290,1127,1317,1323,1330,1592,1834,2077,2083,2698,2719,2725,2887,3253,3520,3526,3884,3890,3901,3906,4181,4186,4426,4431,4436,4447,4451,4611,4615,4774,4779,4784,4794,4798,4853,4857,4914,4927,4931,4942,4946,5112,5116,5399,5404,5409,5419,5423,5868,5872,6267,6278,6282,6292,6296,6383,6387,6490,6502,6506,6512,6583],{"type":57,"tag":58,"props":59,"children":61},"element","h1",{"id":60},"trpc-server-setup",[62],{"type":63,"value":64},"text","tRPC -- Server Setup",{"type":57,"tag":66,"props":67,"children":69},"h2",{"id":68},"setup",[70],{"type":63,"value":71},"Setup",{"type":57,"tag":73,"props":74,"children":79},"pre",{"className":75,"code":76,"language":77,"meta":78,"style":78},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F server\u002Ftrpc.ts\nimport { initTRPC } from '@trpc\u002Fserver';\n\nconst t = initTRPC.create();\n\nexport const router = t.router;\nexport const publicProcedure = t.procedure;\n","ts","",[80],{"type":57,"tag":81,"props":82,"children":83},"code",{"__ignoreMap":78},[84,96,149,159,203,211,252],{"type":57,"tag":85,"props":86,"children":89},"span",{"class":87,"line":88},"line",1,[90],{"type":57,"tag":85,"props":91,"children":93},{"style":92},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[94],{"type":63,"value":95},"\u002F\u002F server\u002Ftrpc.ts\n",{"type":57,"tag":85,"props":97,"children":99},{"class":87,"line":98},2,[100,106,112,118,123,128,133,139,144],{"type":57,"tag":85,"props":101,"children":103},{"style":102},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[104],{"type":63,"value":105},"import",{"type":57,"tag":85,"props":107,"children":109},{"style":108},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[110],{"type":63,"value":111}," {",{"type":57,"tag":85,"props":113,"children":115},{"style":114},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[116],{"type":63,"value":117}," initTRPC",{"type":57,"tag":85,"props":119,"children":120},{"style":108},[121],{"type":63,"value":122}," }",{"type":57,"tag":85,"props":124,"children":125},{"style":102},[126],{"type":63,"value":127}," from",{"type":57,"tag":85,"props":129,"children":130},{"style":108},[131],{"type":63,"value":132}," '",{"type":57,"tag":85,"props":134,"children":136},{"style":135},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[137],{"type":63,"value":138},"@trpc\u002Fserver",{"type":57,"tag":85,"props":140,"children":141},{"style":108},[142],{"type":63,"value":143},"'",{"type":57,"tag":85,"props":145,"children":146},{"style":108},[147],{"type":63,"value":148},";\n",{"type":57,"tag":85,"props":150,"children":152},{"class":87,"line":151},3,[153],{"type":57,"tag":85,"props":154,"children":156},{"emptyLinePlaceholder":155},true,[157],{"type":63,"value":158},"\n",{"type":57,"tag":85,"props":160,"children":162},{"class":87,"line":161},4,[163,169,174,179,183,188,194,199],{"type":57,"tag":85,"props":164,"children":166},{"style":165},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[167],{"type":63,"value":168},"const",{"type":57,"tag":85,"props":170,"children":171},{"style":114},[172],{"type":63,"value":173}," t ",{"type":57,"tag":85,"props":175,"children":176},{"style":108},[177],{"type":63,"value":178},"=",{"type":57,"tag":85,"props":180,"children":181},{"style":114},[182],{"type":63,"value":117},{"type":57,"tag":85,"props":184,"children":185},{"style":108},[186],{"type":63,"value":187},".",{"type":57,"tag":85,"props":189,"children":191},{"style":190},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[192],{"type":63,"value":193},"create",{"type":57,"tag":85,"props":195,"children":196},{"style":114},[197],{"type":63,"value":198},"()",{"type":57,"tag":85,"props":200,"children":201},{"style":108},[202],{"type":63,"value":148},{"type":57,"tag":85,"props":204,"children":206},{"class":87,"line":205},5,[207],{"type":57,"tag":85,"props":208,"children":209},{"emptyLinePlaceholder":155},[210],{"type":63,"value":158},{"type":57,"tag":85,"props":212,"children":214},{"class":87,"line":213},6,[215,220,225,230,234,239,243,248],{"type":57,"tag":85,"props":216,"children":217},{"style":102},[218],{"type":63,"value":219},"export",{"type":57,"tag":85,"props":221,"children":222},{"style":165},[223],{"type":63,"value":224}," const",{"type":57,"tag":85,"props":226,"children":227},{"style":114},[228],{"type":63,"value":229}," router ",{"type":57,"tag":85,"props":231,"children":232},{"style":108},[233],{"type":63,"value":178},{"type":57,"tag":85,"props":235,"children":236},{"style":114},[237],{"type":63,"value":238}," t",{"type":57,"tag":85,"props":240,"children":241},{"style":108},[242],{"type":63,"value":187},{"type":57,"tag":85,"props":244,"children":245},{"style":114},[246],{"type":63,"value":247},"router",{"type":57,"tag":85,"props":249,"children":250},{"style":108},[251],{"type":63,"value":148},{"type":57,"tag":85,"props":253,"children":255},{"class":87,"line":254},7,[256,260,264,269,273,277,281,286],{"type":57,"tag":85,"props":257,"children":258},{"style":102},[259],{"type":63,"value":219},{"type":57,"tag":85,"props":261,"children":262},{"style":165},[263],{"type":63,"value":224},{"type":57,"tag":85,"props":265,"children":266},{"style":114},[267],{"type":63,"value":268}," publicProcedure ",{"type":57,"tag":85,"props":270,"children":271},{"style":108},[272],{"type":63,"value":178},{"type":57,"tag":85,"props":274,"children":275},{"style":114},[276],{"type":63,"value":238},{"type":57,"tag":85,"props":278,"children":279},{"style":108},[280],{"type":63,"value":187},{"type":57,"tag":85,"props":282,"children":283},{"style":114},[284],{"type":63,"value":285},"procedure",{"type":57,"tag":85,"props":287,"children":288},{"style":108},[289],{"type":63,"value":148},{"type":57,"tag":73,"props":291,"children":293},{"className":75,"code":292,"language":77,"meta":78,"style":78},"\u002F\u002F server\u002FappRouter.ts\nimport { z } from 'zod';\nimport { publicProcedure, router } from '.\u002Ftrpc';\n\ntype User = { id: string; name: string };\n\nexport const appRouter = router({\n  userList: publicProcedure.query(async (): Promise\u003CUser[]> => {\n    return [{ id: '1', name: 'Katt' }];\n  }),\n  userById: publicProcedure\n    .input(z.string())\n    .query(async ({ input }): Promise\u003CUser> => {\n      return { id: input, name: 'Katt' };\n    }),\n  userCreate: publicProcedure\n    .input(z.object({ name: z.string() }))\n    .mutation(async ({ input }): Promise\u003CUser> => {\n      return { id: '1', ...input };\n    }),\n});\n\nexport type AppRouter = typeof appRouter;\n",[294],{"type":57,"tag":81,"props":295,"children":296},{"__ignoreMap":78},[297,305,346,397,404,466,473,507,582,660,679,697,730,790,843,860,877,945,1002,1051,1067,1083,1091],{"type":57,"tag":85,"props":298,"children":299},{"class":87,"line":88},[300],{"type":57,"tag":85,"props":301,"children":302},{"style":92},[303],{"type":63,"value":304},"\u002F\u002F server\u002FappRouter.ts\n",{"type":57,"tag":85,"props":306,"children":307},{"class":87,"line":98},[308,312,316,321,325,329,333,338,342],{"type":57,"tag":85,"props":309,"children":310},{"style":102},[311],{"type":63,"value":105},{"type":57,"tag":85,"props":313,"children":314},{"style":108},[315],{"type":63,"value":111},{"type":57,"tag":85,"props":317,"children":318},{"style":114},[319],{"type":63,"value":320}," z",{"type":57,"tag":85,"props":322,"children":323},{"style":108},[324],{"type":63,"value":122},{"type":57,"tag":85,"props":326,"children":327},{"style":102},[328],{"type":63,"value":127},{"type":57,"tag":85,"props":330,"children":331},{"style":108},[332],{"type":63,"value":132},{"type":57,"tag":85,"props":334,"children":335},{"style":135},[336],{"type":63,"value":337},"zod",{"type":57,"tag":85,"props":339,"children":340},{"style":108},[341],{"type":63,"value":143},{"type":57,"tag":85,"props":343,"children":344},{"style":108},[345],{"type":63,"value":148},{"type":57,"tag":85,"props":347,"children":348},{"class":87,"line":151},[349,353,357,362,367,372,376,380,384,389,393],{"type":57,"tag":85,"props":350,"children":351},{"style":102},[352],{"type":63,"value":105},{"type":57,"tag":85,"props":354,"children":355},{"style":108},[356],{"type":63,"value":111},{"type":57,"tag":85,"props":358,"children":359},{"style":114},[360],{"type":63,"value":361}," publicProcedure",{"type":57,"tag":85,"props":363,"children":364},{"style":108},[365],{"type":63,"value":366},",",{"type":57,"tag":85,"props":368,"children":369},{"style":114},[370],{"type":63,"value":371}," router",{"type":57,"tag":85,"props":373,"children":374},{"style":108},[375],{"type":63,"value":122},{"type":57,"tag":85,"props":377,"children":378},{"style":102},[379],{"type":63,"value":127},{"type":57,"tag":85,"props":381,"children":382},{"style":108},[383],{"type":63,"value":132},{"type":57,"tag":85,"props":385,"children":386},{"style":135},[387],{"type":63,"value":388},".\u002Ftrpc",{"type":57,"tag":85,"props":390,"children":391},{"style":108},[392],{"type":63,"value":143},{"type":57,"tag":85,"props":394,"children":395},{"style":108},[396],{"type":63,"value":148},{"type":57,"tag":85,"props":398,"children":399},{"class":87,"line":161},[400],{"type":57,"tag":85,"props":401,"children":402},{"emptyLinePlaceholder":155},[403],{"type":63,"value":158},{"type":57,"tag":85,"props":405,"children":406},{"class":87,"line":205},[407,412,418,423,427,433,438,443,448,453,457,461],{"type":57,"tag":85,"props":408,"children":409},{"style":165},[410],{"type":63,"value":411},"type",{"type":57,"tag":85,"props":413,"children":415},{"style":414},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[416],{"type":63,"value":417}," User",{"type":57,"tag":85,"props":419,"children":420},{"style":108},[421],{"type":63,"value":422}," =",{"type":57,"tag":85,"props":424,"children":425},{"style":108},[426],{"type":63,"value":111},{"type":57,"tag":85,"props":428,"children":430},{"style":429},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[431],{"type":63,"value":432}," id",{"type":57,"tag":85,"props":434,"children":435},{"style":108},[436],{"type":63,"value":437},":",{"type":57,"tag":85,"props":439,"children":440},{"style":414},[441],{"type":63,"value":442}," string",{"type":57,"tag":85,"props":444,"children":445},{"style":108},[446],{"type":63,"value":447},";",{"type":57,"tag":85,"props":449,"children":450},{"style":429},[451],{"type":63,"value":452}," name",{"type":57,"tag":85,"props":454,"children":455},{"style":108},[456],{"type":63,"value":437},{"type":57,"tag":85,"props":458,"children":459},{"style":414},[460],{"type":63,"value":442},{"type":57,"tag":85,"props":462,"children":463},{"style":108},[464],{"type":63,"value":465}," };\n",{"type":57,"tag":85,"props":467,"children":468},{"class":87,"line":213},[469],{"type":57,"tag":85,"props":470,"children":471},{"emptyLinePlaceholder":155},[472],{"type":63,"value":158},{"type":57,"tag":85,"props":474,"children":475},{"class":87,"line":254},[476,480,484,489,493,497,502],{"type":57,"tag":85,"props":477,"children":478},{"style":102},[479],{"type":63,"value":219},{"type":57,"tag":85,"props":481,"children":482},{"style":165},[483],{"type":63,"value":224},{"type":57,"tag":85,"props":485,"children":486},{"style":114},[487],{"type":63,"value":488}," appRouter ",{"type":57,"tag":85,"props":490,"children":491},{"style":108},[492],{"type":63,"value":178},{"type":57,"tag":85,"props":494,"children":495},{"style":190},[496],{"type":63,"value":371},{"type":57,"tag":85,"props":498,"children":499},{"style":114},[500],{"type":63,"value":501},"(",{"type":57,"tag":85,"props":503,"children":504},{"style":108},[505],{"type":63,"value":506},"{\n",{"type":57,"tag":85,"props":508,"children":510},{"class":87,"line":509},8,[511,516,520,524,528,533,537,542,547,552,557,562,567,572,577],{"type":57,"tag":85,"props":512,"children":513},{"style":429},[514],{"type":63,"value":515},"  userList",{"type":57,"tag":85,"props":517,"children":518},{"style":108},[519],{"type":63,"value":437},{"type":57,"tag":85,"props":521,"children":522},{"style":114},[523],{"type":63,"value":361},{"type":57,"tag":85,"props":525,"children":526},{"style":108},[527],{"type":63,"value":187},{"type":57,"tag":85,"props":529,"children":530},{"style":190},[531],{"type":63,"value":532},"query",{"type":57,"tag":85,"props":534,"children":535},{"style":114},[536],{"type":63,"value":501},{"type":57,"tag":85,"props":538,"children":539},{"style":165},[540],{"type":63,"value":541},"async",{"type":57,"tag":85,"props":543,"children":544},{"style":108},[545],{"type":63,"value":546}," ():",{"type":57,"tag":85,"props":548,"children":549},{"style":414},[550],{"type":63,"value":551}," Promise",{"type":57,"tag":85,"props":553,"children":554},{"style":108},[555],{"type":63,"value":556},"\u003C",{"type":57,"tag":85,"props":558,"children":559},{"style":414},[560],{"type":63,"value":561},"User",{"type":57,"tag":85,"props":563,"children":564},{"style":114},[565],{"type":63,"value":566},"[]",{"type":57,"tag":85,"props":568,"children":569},{"style":108},[570],{"type":63,"value":571},">",{"type":57,"tag":85,"props":573,"children":574},{"style":165},[575],{"type":63,"value":576}," =>",{"type":57,"tag":85,"props":578,"children":579},{"style":108},[580],{"type":63,"value":581}," {\n",{"type":57,"tag":85,"props":583,"children":585},{"class":87,"line":584},9,[586,591,596,601,605,609,613,618,622,626,630,634,638,643,647,651,656],{"type":57,"tag":85,"props":587,"children":588},{"style":102},[589],{"type":63,"value":590},"    return",{"type":57,"tag":85,"props":592,"children":593},{"style":429},[594],{"type":63,"value":595}," [",{"type":57,"tag":85,"props":597,"children":598},{"style":108},[599],{"type":63,"value":600},"{",{"type":57,"tag":85,"props":602,"children":603},{"style":429},[604],{"type":63,"value":432},{"type":57,"tag":85,"props":606,"children":607},{"style":108},[608],{"type":63,"value":437},{"type":57,"tag":85,"props":610,"children":611},{"style":108},[612],{"type":63,"value":132},{"type":57,"tag":85,"props":614,"children":615},{"style":135},[616],{"type":63,"value":617},"1",{"type":57,"tag":85,"props":619,"children":620},{"style":108},[621],{"type":63,"value":143},{"type":57,"tag":85,"props":623,"children":624},{"style":108},[625],{"type":63,"value":366},{"type":57,"tag":85,"props":627,"children":628},{"style":429},[629],{"type":63,"value":452},{"type":57,"tag":85,"props":631,"children":632},{"style":108},[633],{"type":63,"value":437},{"type":57,"tag":85,"props":635,"children":636},{"style":108},[637],{"type":63,"value":132},{"type":57,"tag":85,"props":639,"children":640},{"style":135},[641],{"type":63,"value":642},"Katt",{"type":57,"tag":85,"props":644,"children":645},{"style":108},[646],{"type":63,"value":143},{"type":57,"tag":85,"props":648,"children":649},{"style":108},[650],{"type":63,"value":122},{"type":57,"tag":85,"props":652,"children":653},{"style":429},[654],{"type":63,"value":655},"]",{"type":57,"tag":85,"props":657,"children":658},{"style":108},[659],{"type":63,"value":148},{"type":57,"tag":85,"props":661,"children":663},{"class":87,"line":662},10,[664,669,674],{"type":57,"tag":85,"props":665,"children":666},{"style":108},[667],{"type":63,"value":668},"  }",{"type":57,"tag":85,"props":670,"children":671},{"style":114},[672],{"type":63,"value":673},")",{"type":57,"tag":85,"props":675,"children":676},{"style":108},[677],{"type":63,"value":678},",\n",{"type":57,"tag":85,"props":680,"children":682},{"class":87,"line":681},11,[683,688,692],{"type":57,"tag":85,"props":684,"children":685},{"style":429},[686],{"type":63,"value":687},"  userById",{"type":57,"tag":85,"props":689,"children":690},{"style":108},[691],{"type":63,"value":437},{"type":57,"tag":85,"props":693,"children":694},{"style":114},[695],{"type":63,"value":696}," publicProcedure\n",{"type":57,"tag":85,"props":698,"children":700},{"class":87,"line":699},12,[701,706,711,716,720,725],{"type":57,"tag":85,"props":702,"children":703},{"style":108},[704],{"type":63,"value":705},"    .",{"type":57,"tag":85,"props":707,"children":708},{"style":190},[709],{"type":63,"value":710},"input",{"type":57,"tag":85,"props":712,"children":713},{"style":114},[714],{"type":63,"value":715},"(z",{"type":57,"tag":85,"props":717,"children":718},{"style":108},[719],{"type":63,"value":187},{"type":57,"tag":85,"props":721,"children":722},{"style":190},[723],{"type":63,"value":724},"string",{"type":57,"tag":85,"props":726,"children":727},{"style":114},[728],{"type":63,"value":729},"())\n",{"type":57,"tag":85,"props":731,"children":733},{"class":87,"line":732},13,[734,738,742,746,750,755,761,766,770,774,778,782,786],{"type":57,"tag":85,"props":735,"children":736},{"style":108},[737],{"type":63,"value":705},{"type":57,"tag":85,"props":739,"children":740},{"style":190},[741],{"type":63,"value":532},{"type":57,"tag":85,"props":743,"children":744},{"style":114},[745],{"type":63,"value":501},{"type":57,"tag":85,"props":747,"children":748},{"style":165},[749],{"type":63,"value":541},{"type":57,"tag":85,"props":751,"children":752},{"style":108},[753],{"type":63,"value":754}," ({",{"type":57,"tag":85,"props":756,"children":758},{"style":757},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[759],{"type":63,"value":760}," input",{"type":57,"tag":85,"props":762,"children":763},{"style":108},[764],{"type":63,"value":765}," }):",{"type":57,"tag":85,"props":767,"children":768},{"style":414},[769],{"type":63,"value":551},{"type":57,"tag":85,"props":771,"children":772},{"style":108},[773],{"type":63,"value":556},{"type":57,"tag":85,"props":775,"children":776},{"style":414},[777],{"type":63,"value":561},{"type":57,"tag":85,"props":779,"children":780},{"style":108},[781],{"type":63,"value":571},{"type":57,"tag":85,"props":783,"children":784},{"style":165},[785],{"type":63,"value":576},{"type":57,"tag":85,"props":787,"children":788},{"style":108},[789],{"type":63,"value":581},{"type":57,"tag":85,"props":791,"children":793},{"class":87,"line":792},14,[794,799,803,807,811,815,819,823,827,831,835,839],{"type":57,"tag":85,"props":795,"children":796},{"style":102},[797],{"type":63,"value":798},"      return",{"type":57,"tag":85,"props":800,"children":801},{"style":108},[802],{"type":63,"value":111},{"type":57,"tag":85,"props":804,"children":805},{"style":429},[806],{"type":63,"value":432},{"type":57,"tag":85,"props":808,"children":809},{"style":108},[810],{"type":63,"value":437},{"type":57,"tag":85,"props":812,"children":813},{"style":114},[814],{"type":63,"value":760},{"type":57,"tag":85,"props":816,"children":817},{"style":108},[818],{"type":63,"value":366},{"type":57,"tag":85,"props":820,"children":821},{"style":429},[822],{"type":63,"value":452},{"type":57,"tag":85,"props":824,"children":825},{"style":108},[826],{"type":63,"value":437},{"type":57,"tag":85,"props":828,"children":829},{"style":108},[830],{"type":63,"value":132},{"type":57,"tag":85,"props":832,"children":833},{"style":135},[834],{"type":63,"value":642},{"type":57,"tag":85,"props":836,"children":837},{"style":108},[838],{"type":63,"value":143},{"type":57,"tag":85,"props":840,"children":841},{"style":108},[842],{"type":63,"value":465},{"type":57,"tag":85,"props":844,"children":846},{"class":87,"line":845},15,[847,852,856],{"type":57,"tag":85,"props":848,"children":849},{"style":108},[850],{"type":63,"value":851},"    }",{"type":57,"tag":85,"props":853,"children":854},{"style":114},[855],{"type":63,"value":673},{"type":57,"tag":85,"props":857,"children":858},{"style":108},[859],{"type":63,"value":678},{"type":57,"tag":85,"props":861,"children":863},{"class":87,"line":862},16,[864,869,873],{"type":57,"tag":85,"props":865,"children":866},{"style":429},[867],{"type":63,"value":868},"  userCreate",{"type":57,"tag":85,"props":870,"children":871},{"style":108},[872],{"type":63,"value":437},{"type":57,"tag":85,"props":874,"children":875},{"style":114},[876],{"type":63,"value":696},{"type":57,"tag":85,"props":878,"children":880},{"class":87,"line":879},17,[881,885,889,893,897,902,906,910,914,918,922,926,930,935,940],{"type":57,"tag":85,"props":882,"children":883},{"style":108},[884],{"type":63,"value":705},{"type":57,"tag":85,"props":886,"children":887},{"style":190},[888],{"type":63,"value":710},{"type":57,"tag":85,"props":890,"children":891},{"style":114},[892],{"type":63,"value":715},{"type":57,"tag":85,"props":894,"children":895},{"style":108},[896],{"type":63,"value":187},{"type":57,"tag":85,"props":898,"children":899},{"style":190},[900],{"type":63,"value":901},"object",{"type":57,"tag":85,"props":903,"children":904},{"style":114},[905],{"type":63,"value":501},{"type":57,"tag":85,"props":907,"children":908},{"style":108},[909],{"type":63,"value":600},{"type":57,"tag":85,"props":911,"children":912},{"style":429},[913],{"type":63,"value":452},{"type":57,"tag":85,"props":915,"children":916},{"style":108},[917],{"type":63,"value":437},{"type":57,"tag":85,"props":919,"children":920},{"style":114},[921],{"type":63,"value":320},{"type":57,"tag":85,"props":923,"children":924},{"style":108},[925],{"type":63,"value":187},{"type":57,"tag":85,"props":927,"children":928},{"style":190},[929],{"type":63,"value":724},{"type":57,"tag":85,"props":931,"children":932},{"style":114},[933],{"type":63,"value":934},"() ",{"type":57,"tag":85,"props":936,"children":937},{"style":108},[938],{"type":63,"value":939},"}",{"type":57,"tag":85,"props":941,"children":942},{"style":114},[943],{"type":63,"value":944},"))\n",{"type":57,"tag":85,"props":946,"children":948},{"class":87,"line":947},18,[949,953,958,962,966,970,974,978,982,986,990,994,998],{"type":57,"tag":85,"props":950,"children":951},{"style":108},[952],{"type":63,"value":705},{"type":57,"tag":85,"props":954,"children":955},{"style":190},[956],{"type":63,"value":957},"mutation",{"type":57,"tag":85,"props":959,"children":960},{"style":114},[961],{"type":63,"value":501},{"type":57,"tag":85,"props":963,"children":964},{"style":165},[965],{"type":63,"value":541},{"type":57,"tag":85,"props":967,"children":968},{"style":108},[969],{"type":63,"value":754},{"type":57,"tag":85,"props":971,"children":972},{"style":757},[973],{"type":63,"value":760},{"type":57,"tag":85,"props":975,"children":976},{"style":108},[977],{"type":63,"value":765},{"type":57,"tag":85,"props":979,"children":980},{"style":414},[981],{"type":63,"value":551},{"type":57,"tag":85,"props":983,"children":984},{"style":108},[985],{"type":63,"value":556},{"type":57,"tag":85,"props":987,"children":988},{"style":414},[989],{"type":63,"value":561},{"type":57,"tag":85,"props":991,"children":992},{"style":108},[993],{"type":63,"value":571},{"type":57,"tag":85,"props":995,"children":996},{"style":165},[997],{"type":63,"value":576},{"type":57,"tag":85,"props":999,"children":1000},{"style":108},[1001],{"type":63,"value":581},{"type":57,"tag":85,"props":1003,"children":1005},{"class":87,"line":1004},19,[1006,1010,1014,1018,1022,1026,1030,1034,1038,1043,1047],{"type":57,"tag":85,"props":1007,"children":1008},{"style":102},[1009],{"type":63,"value":798},{"type":57,"tag":85,"props":1011,"children":1012},{"style":108},[1013],{"type":63,"value":111},{"type":57,"tag":85,"props":1015,"children":1016},{"style":429},[1017],{"type":63,"value":432},{"type":57,"tag":85,"props":1019,"children":1020},{"style":108},[1021],{"type":63,"value":437},{"type":57,"tag":85,"props":1023,"children":1024},{"style":108},[1025],{"type":63,"value":132},{"type":57,"tag":85,"props":1027,"children":1028},{"style":135},[1029],{"type":63,"value":617},{"type":57,"tag":85,"props":1031,"children":1032},{"style":108},[1033],{"type":63,"value":143},{"type":57,"tag":85,"props":1035,"children":1036},{"style":108},[1037],{"type":63,"value":366},{"type":57,"tag":85,"props":1039,"children":1040},{"style":108},[1041],{"type":63,"value":1042}," ...",{"type":57,"tag":85,"props":1044,"children":1045},{"style":114},[1046],{"type":63,"value":710},{"type":57,"tag":85,"props":1048,"children":1049},{"style":108},[1050],{"type":63,"value":465},{"type":57,"tag":85,"props":1052,"children":1054},{"class":87,"line":1053},20,[1055,1059,1063],{"type":57,"tag":85,"props":1056,"children":1057},{"style":108},[1058],{"type":63,"value":851},{"type":57,"tag":85,"props":1060,"children":1061},{"style":114},[1062],{"type":63,"value":673},{"type":57,"tag":85,"props":1064,"children":1065},{"style":108},[1066],{"type":63,"value":678},{"type":57,"tag":85,"props":1068,"children":1070},{"class":87,"line":1069},21,[1071,1075,1079],{"type":57,"tag":85,"props":1072,"children":1073},{"style":108},[1074],{"type":63,"value":939},{"type":57,"tag":85,"props":1076,"children":1077},{"style":114},[1078],{"type":63,"value":673},{"type":57,"tag":85,"props":1080,"children":1081},{"style":108},[1082],{"type":63,"value":148},{"type":57,"tag":85,"props":1084,"children":1086},{"class":87,"line":1085},22,[1087],{"type":57,"tag":85,"props":1088,"children":1089},{"emptyLinePlaceholder":155},[1090],{"type":63,"value":158},{"type":57,"tag":85,"props":1092,"children":1094},{"class":87,"line":1093},23,[1095,1099,1104,1109,1113,1118,1123],{"type":57,"tag":85,"props":1096,"children":1097},{"style":102},[1098],{"type":63,"value":219},{"type":57,"tag":85,"props":1100,"children":1101},{"style":165},[1102],{"type":63,"value":1103}," type",{"type":57,"tag":85,"props":1105,"children":1106},{"style":414},[1107],{"type":63,"value":1108}," AppRouter",{"type":57,"tag":85,"props":1110,"children":1111},{"style":108},[1112],{"type":63,"value":422},{"type":57,"tag":85,"props":1114,"children":1115},{"style":108},[1116],{"type":63,"value":1117}," typeof",{"type":57,"tag":85,"props":1119,"children":1120},{"style":114},[1121],{"type":63,"value":1122}," appRouter",{"type":57,"tag":85,"props":1124,"children":1125},{"style":108},[1126],{"type":63,"value":148},{"type":57,"tag":73,"props":1128,"children":1130},{"className":75,"code":1129,"language":77,"meta":78,"style":78},"\u002F\u002F server\u002Findex.ts\nimport { createHTTPServer } from '@trpc\u002Fserver\u002Fadapters\u002Fstandalone';\nimport { appRouter } from '.\u002FappRouter';\n\nconst server = createHTTPServer({ router: appRouter });\nserver.listen(3000);\n",[1131],{"type":57,"tag":81,"props":1132,"children":1133},{"__ignoreMap":78},[1134,1142,1183,1223,1230,1282],{"type":57,"tag":85,"props":1135,"children":1136},{"class":87,"line":88},[1137],{"type":57,"tag":85,"props":1138,"children":1139},{"style":92},[1140],{"type":63,"value":1141},"\u002F\u002F server\u002Findex.ts\n",{"type":57,"tag":85,"props":1143,"children":1144},{"class":87,"line":98},[1145,1149,1153,1158,1162,1166,1170,1175,1179],{"type":57,"tag":85,"props":1146,"children":1147},{"style":102},[1148],{"type":63,"value":105},{"type":57,"tag":85,"props":1150,"children":1151},{"style":108},[1152],{"type":63,"value":111},{"type":57,"tag":85,"props":1154,"children":1155},{"style":114},[1156],{"type":63,"value":1157}," createHTTPServer",{"type":57,"tag":85,"props":1159,"children":1160},{"style":108},[1161],{"type":63,"value":122},{"type":57,"tag":85,"props":1163,"children":1164},{"style":102},[1165],{"type":63,"value":127},{"type":57,"tag":85,"props":1167,"children":1168},{"style":108},[1169],{"type":63,"value":132},{"type":57,"tag":85,"props":1171,"children":1172},{"style":135},[1173],{"type":63,"value":1174},"@trpc\u002Fserver\u002Fadapters\u002Fstandalone",{"type":57,"tag":85,"props":1176,"children":1177},{"style":108},[1178],{"type":63,"value":143},{"type":57,"tag":85,"props":1180,"children":1181},{"style":108},[1182],{"type":63,"value":148},{"type":57,"tag":85,"props":1184,"children":1185},{"class":87,"line":151},[1186,1190,1194,1198,1202,1206,1210,1215,1219],{"type":57,"tag":85,"props":1187,"children":1188},{"style":102},[1189],{"type":63,"value":105},{"type":57,"tag":85,"props":1191,"children":1192},{"style":108},[1193],{"type":63,"value":111},{"type":57,"tag":85,"props":1195,"children":1196},{"style":114},[1197],{"type":63,"value":1122},{"type":57,"tag":85,"props":1199,"children":1200},{"style":108},[1201],{"type":63,"value":122},{"type":57,"tag":85,"props":1203,"children":1204},{"style":102},[1205],{"type":63,"value":127},{"type":57,"tag":85,"props":1207,"children":1208},{"style":108},[1209],{"type":63,"value":132},{"type":57,"tag":85,"props":1211,"children":1212},{"style":135},[1213],{"type":63,"value":1214},".\u002FappRouter",{"type":57,"tag":85,"props":1216,"children":1217},{"style":108},[1218],{"type":63,"value":143},{"type":57,"tag":85,"props":1220,"children":1221},{"style":108},[1222],{"type":63,"value":148},{"type":57,"tag":85,"props":1224,"children":1225},{"class":87,"line":161},[1226],{"type":57,"tag":85,"props":1227,"children":1228},{"emptyLinePlaceholder":155},[1229],{"type":63,"value":158},{"type":57,"tag":85,"props":1231,"children":1232},{"class":87,"line":205},[1233,1237,1242,1246,1250,1254,1258,1262,1266,1270,1274,1278],{"type":57,"tag":85,"props":1234,"children":1235},{"style":165},[1236],{"type":63,"value":168},{"type":57,"tag":85,"props":1238,"children":1239},{"style":114},[1240],{"type":63,"value":1241}," server ",{"type":57,"tag":85,"props":1243,"children":1244},{"style":108},[1245],{"type":63,"value":178},{"type":57,"tag":85,"props":1247,"children":1248},{"style":190},[1249],{"type":63,"value":1157},{"type":57,"tag":85,"props":1251,"children":1252},{"style":114},[1253],{"type":63,"value":501},{"type":57,"tag":85,"props":1255,"children":1256},{"style":108},[1257],{"type":63,"value":600},{"type":57,"tag":85,"props":1259,"children":1260},{"style":429},[1261],{"type":63,"value":371},{"type":57,"tag":85,"props":1263,"children":1264},{"style":108},[1265],{"type":63,"value":437},{"type":57,"tag":85,"props":1267,"children":1268},{"style":114},[1269],{"type":63,"value":488},{"type":57,"tag":85,"props":1271,"children":1272},{"style":108},[1273],{"type":63,"value":939},{"type":57,"tag":85,"props":1275,"children":1276},{"style":114},[1277],{"type":63,"value":673},{"type":57,"tag":85,"props":1279,"children":1280},{"style":108},[1281],{"type":63,"value":148},{"type":57,"tag":85,"props":1283,"children":1284},{"class":87,"line":213},[1285,1290,1294,1299,1303,1309,1313],{"type":57,"tag":85,"props":1286,"children":1287},{"style":114},[1288],{"type":63,"value":1289},"server",{"type":57,"tag":85,"props":1291,"children":1292},{"style":108},[1293],{"type":63,"value":187},{"type":57,"tag":85,"props":1295,"children":1296},{"style":190},[1297],{"type":63,"value":1298},"listen",{"type":57,"tag":85,"props":1300,"children":1301},{"style":114},[1302],{"type":63,"value":501},{"type":57,"tag":85,"props":1304,"children":1306},{"style":1305},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1307],{"type":63,"value":1308},"3000",{"type":57,"tag":85,"props":1310,"children":1311},{"style":114},[1312],{"type":63,"value":673},{"type":57,"tag":85,"props":1314,"children":1315},{"style":108},[1316],{"type":63,"value":148},{"type":57,"tag":66,"props":1318,"children":1320},{"id":1319},"core-patterns",[1321],{"type":63,"value":1322},"Core Patterns",{"type":57,"tag":1324,"props":1325,"children":1327},"h3",{"id":1326},"context-with-typed-session",[1328],{"type":63,"value":1329},"Context with typed session",{"type":57,"tag":73,"props":1331,"children":1333},{"className":75,"code":1332,"language":77,"meta":78,"style":78},"\u002F\u002F server\u002Fcontext.ts\nimport type { CreateHTTPContextOptions } from '@trpc\u002Fserver\u002Fadapters\u002Fstandalone';\n\nexport async function createContext(opts: CreateHTTPContextOptions) {\n  const token = opts.req.headers['authorization'];\n  return { token };\n}\n\nexport type Context = Awaited\u003CReturnType\u003Ctypeof createContext>>;\n",[1334],{"type":57,"tag":81,"props":1335,"children":1336},{"__ignoreMap":78},[1337,1345,1389,1396,1443,1509,1529,1537,1544],{"type":57,"tag":85,"props":1338,"children":1339},{"class":87,"line":88},[1340],{"type":57,"tag":85,"props":1341,"children":1342},{"style":92},[1343],{"type":63,"value":1344},"\u002F\u002F server\u002Fcontext.ts\n",{"type":57,"tag":85,"props":1346,"children":1347},{"class":87,"line":98},[1348,1352,1356,1360,1365,1369,1373,1377,1381,1385],{"type":57,"tag":85,"props":1349,"children":1350},{"style":102},[1351],{"type":63,"value":105},{"type":57,"tag":85,"props":1353,"children":1354},{"style":102},[1355],{"type":63,"value":1103},{"type":57,"tag":85,"props":1357,"children":1358},{"style":108},[1359],{"type":63,"value":111},{"type":57,"tag":85,"props":1361,"children":1362},{"style":114},[1363],{"type":63,"value":1364}," CreateHTTPContextOptions",{"type":57,"tag":85,"props":1366,"children":1367},{"style":108},[1368],{"type":63,"value":122},{"type":57,"tag":85,"props":1370,"children":1371},{"style":102},[1372],{"type":63,"value":127},{"type":57,"tag":85,"props":1374,"children":1375},{"style":108},[1376],{"type":63,"value":132},{"type":57,"tag":85,"props":1378,"children":1379},{"style":135},[1380],{"type":63,"value":1174},{"type":57,"tag":85,"props":1382,"children":1383},{"style":108},[1384],{"type":63,"value":143},{"type":57,"tag":85,"props":1386,"children":1387},{"style":108},[1388],{"type":63,"value":148},{"type":57,"tag":85,"props":1390,"children":1391},{"class":87,"line":151},[1392],{"type":57,"tag":85,"props":1393,"children":1394},{"emptyLinePlaceholder":155},[1395],{"type":63,"value":158},{"type":57,"tag":85,"props":1397,"children":1398},{"class":87,"line":161},[1399,1403,1408,1413,1418,1422,1427,1431,1435,1439],{"type":57,"tag":85,"props":1400,"children":1401},{"style":102},[1402],{"type":63,"value":219},{"type":57,"tag":85,"props":1404,"children":1405},{"style":165},[1406],{"type":63,"value":1407}," async",{"type":57,"tag":85,"props":1409,"children":1410},{"style":165},[1411],{"type":63,"value":1412}," function",{"type":57,"tag":85,"props":1414,"children":1415},{"style":190},[1416],{"type":63,"value":1417}," createContext",{"type":57,"tag":85,"props":1419,"children":1420},{"style":108},[1421],{"type":63,"value":501},{"type":57,"tag":85,"props":1423,"children":1424},{"style":757},[1425],{"type":63,"value":1426},"opts",{"type":57,"tag":85,"props":1428,"children":1429},{"style":108},[1430],{"type":63,"value":437},{"type":57,"tag":85,"props":1432,"children":1433},{"style":414},[1434],{"type":63,"value":1364},{"type":57,"tag":85,"props":1436,"children":1437},{"style":108},[1438],{"type":63,"value":673},{"type":57,"tag":85,"props":1440,"children":1441},{"style":108},[1442],{"type":63,"value":581},{"type":57,"tag":85,"props":1444,"children":1445},{"class":87,"line":205},[1446,1451,1456,1460,1465,1469,1474,1478,1483,1488,1492,1497,1501,1505],{"type":57,"tag":85,"props":1447,"children":1448},{"style":165},[1449],{"type":63,"value":1450},"  const",{"type":57,"tag":85,"props":1452,"children":1453},{"style":114},[1454],{"type":63,"value":1455}," token",{"type":57,"tag":85,"props":1457,"children":1458},{"style":108},[1459],{"type":63,"value":422},{"type":57,"tag":85,"props":1461,"children":1462},{"style":114},[1463],{"type":63,"value":1464}," opts",{"type":57,"tag":85,"props":1466,"children":1467},{"style":108},[1468],{"type":63,"value":187},{"type":57,"tag":85,"props":1470,"children":1471},{"style":114},[1472],{"type":63,"value":1473},"req",{"type":57,"tag":85,"props":1475,"children":1476},{"style":108},[1477],{"type":63,"value":187},{"type":57,"tag":85,"props":1479,"children":1480},{"style":114},[1481],{"type":63,"value":1482},"headers",{"type":57,"tag":85,"props":1484,"children":1485},{"style":429},[1486],{"type":63,"value":1487},"[",{"type":57,"tag":85,"props":1489,"children":1490},{"style":108},[1491],{"type":63,"value":143},{"type":57,"tag":85,"props":1493,"children":1494},{"style":135},[1495],{"type":63,"value":1496},"authorization",{"type":57,"tag":85,"props":1498,"children":1499},{"style":108},[1500],{"type":63,"value":143},{"type":57,"tag":85,"props":1502,"children":1503},{"style":429},[1504],{"type":63,"value":655},{"type":57,"tag":85,"props":1506,"children":1507},{"style":108},[1508],{"type":63,"value":148},{"type":57,"tag":85,"props":1510,"children":1511},{"class":87,"line":213},[1512,1517,1521,1525],{"type":57,"tag":85,"props":1513,"children":1514},{"style":102},[1515],{"type":63,"value":1516},"  return",{"type":57,"tag":85,"props":1518,"children":1519},{"style":108},[1520],{"type":63,"value":111},{"type":57,"tag":85,"props":1522,"children":1523},{"style":114},[1524],{"type":63,"value":1455},{"type":57,"tag":85,"props":1526,"children":1527},{"style":108},[1528],{"type":63,"value":465},{"type":57,"tag":85,"props":1530,"children":1531},{"class":87,"line":254},[1532],{"type":57,"tag":85,"props":1533,"children":1534},{"style":108},[1535],{"type":63,"value":1536},"}\n",{"type":57,"tag":85,"props":1538,"children":1539},{"class":87,"line":509},[1540],{"type":57,"tag":85,"props":1541,"children":1542},{"emptyLinePlaceholder":155},[1543],{"type":63,"value":158},{"type":57,"tag":85,"props":1545,"children":1546},{"class":87,"line":584},[1547,1551,1555,1560,1564,1569,1573,1578,1583,1587],{"type":57,"tag":85,"props":1548,"children":1549},{"style":102},[1550],{"type":63,"value":219},{"type":57,"tag":85,"props":1552,"children":1553},{"style":165},[1554],{"type":63,"value":1103},{"type":57,"tag":85,"props":1556,"children":1557},{"style":414},[1558],{"type":63,"value":1559}," Context",{"type":57,"tag":85,"props":1561,"children":1562},{"style":108},[1563],{"type":63,"value":422},{"type":57,"tag":85,"props":1565,"children":1566},{"style":414},[1567],{"type":63,"value":1568}," Awaited",{"type":57,"tag":85,"props":1570,"children":1571},{"style":108},[1572],{"type":63,"value":556},{"type":57,"tag":85,"props":1574,"children":1575},{"style":414},[1576],{"type":63,"value":1577},"ReturnType",{"type":57,"tag":85,"props":1579,"children":1580},{"style":108},[1581],{"type":63,"value":1582},"\u003Ctypeof",{"type":57,"tag":85,"props":1584,"children":1585},{"style":114},[1586],{"type":63,"value":1417},{"type":57,"tag":85,"props":1588,"children":1589},{"style":108},[1590],{"type":63,"value":1591},">>;\n",{"type":57,"tag":73,"props":1593,"children":1595},{"className":75,"code":1594,"language":77,"meta":78,"style":78},"\u002F\u002F server\u002Ftrpc.ts\nimport { initTRPC } from '@trpc\u002Fserver';\nimport type { Context } from '.\u002Fcontext';\n\nconst t = initTRPC.context\u003CContext>().create();\n\nexport const router = t.router;\nexport const publicProcedure = t.procedure;\n",[1596],{"type":57,"tag":81,"props":1597,"children":1598},{"__ignoreMap":78},[1599,1606,1645,1689,1696,1757,1764,1799],{"type":57,"tag":85,"props":1600,"children":1601},{"class":87,"line":88},[1602],{"type":57,"tag":85,"props":1603,"children":1604},{"style":92},[1605],{"type":63,"value":95},{"type":57,"tag":85,"props":1607,"children":1608},{"class":87,"line":98},[1609,1613,1617,1621,1625,1629,1633,1637,1641],{"type":57,"tag":85,"props":1610,"children":1611},{"style":102},[1612],{"type":63,"value":105},{"type":57,"tag":85,"props":1614,"children":1615},{"style":108},[1616],{"type":63,"value":111},{"type":57,"tag":85,"props":1618,"children":1619},{"style":114},[1620],{"type":63,"value":117},{"type":57,"tag":85,"props":1622,"children":1623},{"style":108},[1624],{"type":63,"value":122},{"type":57,"tag":85,"props":1626,"children":1627},{"style":102},[1628],{"type":63,"value":127},{"type":57,"tag":85,"props":1630,"children":1631},{"style":108},[1632],{"type":63,"value":132},{"type":57,"tag":85,"props":1634,"children":1635},{"style":135},[1636],{"type":63,"value":138},{"type":57,"tag":85,"props":1638,"children":1639},{"style":108},[1640],{"type":63,"value":143},{"type":57,"tag":85,"props":1642,"children":1643},{"style":108},[1644],{"type":63,"value":148},{"type":57,"tag":85,"props":1646,"children":1647},{"class":87,"line":151},[1648,1652,1656,1660,1664,1668,1672,1676,1681,1685],{"type":57,"tag":85,"props":1649,"children":1650},{"style":102},[1651],{"type":63,"value":105},{"type":57,"tag":85,"props":1653,"children":1654},{"style":102},[1655],{"type":63,"value":1103},{"type":57,"tag":85,"props":1657,"children":1658},{"style":108},[1659],{"type":63,"value":111},{"type":57,"tag":85,"props":1661,"children":1662},{"style":114},[1663],{"type":63,"value":1559},{"type":57,"tag":85,"props":1665,"children":1666},{"style":108},[1667],{"type":63,"value":122},{"type":57,"tag":85,"props":1669,"children":1670},{"style":102},[1671],{"type":63,"value":127},{"type":57,"tag":85,"props":1673,"children":1674},{"style":108},[1675],{"type":63,"value":132},{"type":57,"tag":85,"props":1677,"children":1678},{"style":135},[1679],{"type":63,"value":1680},".\u002Fcontext",{"type":57,"tag":85,"props":1682,"children":1683},{"style":108},[1684],{"type":63,"value":143},{"type":57,"tag":85,"props":1686,"children":1687},{"style":108},[1688],{"type":63,"value":148},{"type":57,"tag":85,"props":1690,"children":1691},{"class":87,"line":161},[1692],{"type":57,"tag":85,"props":1693,"children":1694},{"emptyLinePlaceholder":155},[1695],{"type":63,"value":158},{"type":57,"tag":85,"props":1697,"children":1698},{"class":87,"line":205},[1699,1703,1707,1711,1715,1719,1724,1728,1733,1737,1741,1745,1749,1753],{"type":57,"tag":85,"props":1700,"children":1701},{"style":165},[1702],{"type":63,"value":168},{"type":57,"tag":85,"props":1704,"children":1705},{"style":114},[1706],{"type":63,"value":173},{"type":57,"tag":85,"props":1708,"children":1709},{"style":108},[1710],{"type":63,"value":178},{"type":57,"tag":85,"props":1712,"children":1713},{"style":114},[1714],{"type":63,"value":117},{"type":57,"tag":85,"props":1716,"children":1717},{"style":108},[1718],{"type":63,"value":187},{"type":57,"tag":85,"props":1720,"children":1721},{"style":190},[1722],{"type":63,"value":1723},"context",{"type":57,"tag":85,"props":1725,"children":1726},{"style":108},[1727],{"type":63,"value":556},{"type":57,"tag":85,"props":1729,"children":1730},{"style":414},[1731],{"type":63,"value":1732},"Context",{"type":57,"tag":85,"props":1734,"children":1735},{"style":108},[1736],{"type":63,"value":571},{"type":57,"tag":85,"props":1738,"children":1739},{"style":114},[1740],{"type":63,"value":198},{"type":57,"tag":85,"props":1742,"children":1743},{"style":108},[1744],{"type":63,"value":187},{"type":57,"tag":85,"props":1746,"children":1747},{"style":190},[1748],{"type":63,"value":193},{"type":57,"tag":85,"props":1750,"children":1751},{"style":114},[1752],{"type":63,"value":198},{"type":57,"tag":85,"props":1754,"children":1755},{"style":108},[1756],{"type":63,"value":148},{"type":57,"tag":85,"props":1758,"children":1759},{"class":87,"line":213},[1760],{"type":57,"tag":85,"props":1761,"children":1762},{"emptyLinePlaceholder":155},[1763],{"type":63,"value":158},{"type":57,"tag":85,"props":1765,"children":1766},{"class":87,"line":254},[1767,1771,1775,1779,1783,1787,1791,1795],{"type":57,"tag":85,"props":1768,"children":1769},{"style":102},[1770],{"type":63,"value":219},{"type":57,"tag":85,"props":1772,"children":1773},{"style":165},[1774],{"type":63,"value":224},{"type":57,"tag":85,"props":1776,"children":1777},{"style":114},[1778],{"type":63,"value":229},{"type":57,"tag":85,"props":1780,"children":1781},{"style":108},[1782],{"type":63,"value":178},{"type":57,"tag":85,"props":1784,"children":1785},{"style":114},[1786],{"type":63,"value":238},{"type":57,"tag":85,"props":1788,"children":1789},{"style":108},[1790],{"type":63,"value":187},{"type":57,"tag":85,"props":1792,"children":1793},{"style":114},[1794],{"type":63,"value":247},{"type":57,"tag":85,"props":1796,"children":1797},{"style":108},[1798],{"type":63,"value":148},{"type":57,"tag":85,"props":1800,"children":1801},{"class":87,"line":509},[1802,1806,1810,1814,1818,1822,1826,1830],{"type":57,"tag":85,"props":1803,"children":1804},{"style":102},[1805],{"type":63,"value":219},{"type":57,"tag":85,"props":1807,"children":1808},{"style":165},[1809],{"type":63,"value":224},{"type":57,"tag":85,"props":1811,"children":1812},{"style":114},[1813],{"type":63,"value":268},{"type":57,"tag":85,"props":1815,"children":1816},{"style":108},[1817],{"type":63,"value":178},{"type":57,"tag":85,"props":1819,"children":1820},{"style":114},[1821],{"type":63,"value":238},{"type":57,"tag":85,"props":1823,"children":1824},{"style":108},[1825],{"type":63,"value":187},{"type":57,"tag":85,"props":1827,"children":1828},{"style":114},[1829],{"type":63,"value":285},{"type":57,"tag":85,"props":1831,"children":1832},{"style":108},[1833],{"type":63,"value":148},{"type":57,"tag":73,"props":1835,"children":1837},{"className":75,"code":1836,"language":77,"meta":78,"style":78},"\u002F\u002F server\u002Findex.ts\nimport { createHTTPServer } from '@trpc\u002Fserver\u002Fadapters\u002Fstandalone';\nimport { appRouter } from '.\u002FappRouter';\nimport { createContext } from '.\u002Fcontext';\n\nconst server = createHTTPServer({\n  router: appRouter,\n  createContext,\n});\nserver.listen(3000);\n",[1838],{"type":57,"tag":81,"props":1839,"children":1840},{"__ignoreMap":78},[1841,1848,1887,1926,1965,1972,1999,2019,2031,2046],{"type":57,"tag":85,"props":1842,"children":1843},{"class":87,"line":88},[1844],{"type":57,"tag":85,"props":1845,"children":1846},{"style":92},[1847],{"type":63,"value":1141},{"type":57,"tag":85,"props":1849,"children":1850},{"class":87,"line":98},[1851,1855,1859,1863,1867,1871,1875,1879,1883],{"type":57,"tag":85,"props":1852,"children":1853},{"style":102},[1854],{"type":63,"value":105},{"type":57,"tag":85,"props":1856,"children":1857},{"style":108},[1858],{"type":63,"value":111},{"type":57,"tag":85,"props":1860,"children":1861},{"style":114},[1862],{"type":63,"value":1157},{"type":57,"tag":85,"props":1864,"children":1865},{"style":108},[1866],{"type":63,"value":122},{"type":57,"tag":85,"props":1868,"children":1869},{"style":102},[1870],{"type":63,"value":127},{"type":57,"tag":85,"props":1872,"children":1873},{"style":108},[1874],{"type":63,"value":132},{"type":57,"tag":85,"props":1876,"children":1877},{"style":135},[1878],{"type":63,"value":1174},{"type":57,"tag":85,"props":1880,"children":1881},{"style":108},[1882],{"type":63,"value":143},{"type":57,"tag":85,"props":1884,"children":1885},{"style":108},[1886],{"type":63,"value":148},{"type":57,"tag":85,"props":1888,"children":1889},{"class":87,"line":151},[1890,1894,1898,1902,1906,1910,1914,1918,1922],{"type":57,"tag":85,"props":1891,"children":1892},{"style":102},[1893],{"type":63,"value":105},{"type":57,"tag":85,"props":1895,"children":1896},{"style":108},[1897],{"type":63,"value":111},{"type":57,"tag":85,"props":1899,"children":1900},{"style":114},[1901],{"type":63,"value":1122},{"type":57,"tag":85,"props":1903,"children":1904},{"style":108},[1905],{"type":63,"value":122},{"type":57,"tag":85,"props":1907,"children":1908},{"style":102},[1909],{"type":63,"value":127},{"type":57,"tag":85,"props":1911,"children":1912},{"style":108},[1913],{"type":63,"value":132},{"type":57,"tag":85,"props":1915,"children":1916},{"style":135},[1917],{"type":63,"value":1214},{"type":57,"tag":85,"props":1919,"children":1920},{"style":108},[1921],{"type":63,"value":143},{"type":57,"tag":85,"props":1923,"children":1924},{"style":108},[1925],{"type":63,"value":148},{"type":57,"tag":85,"props":1927,"children":1928},{"class":87,"line":161},[1929,1933,1937,1941,1945,1949,1953,1957,1961],{"type":57,"tag":85,"props":1930,"children":1931},{"style":102},[1932],{"type":63,"value":105},{"type":57,"tag":85,"props":1934,"children":1935},{"style":108},[1936],{"type":63,"value":111},{"type":57,"tag":85,"props":1938,"children":1939},{"style":114},[1940],{"type":63,"value":1417},{"type":57,"tag":85,"props":1942,"children":1943},{"style":108},[1944],{"type":63,"value":122},{"type":57,"tag":85,"props":1946,"children":1947},{"style":102},[1948],{"type":63,"value":127},{"type":57,"tag":85,"props":1950,"children":1951},{"style":108},[1952],{"type":63,"value":132},{"type":57,"tag":85,"props":1954,"children":1955},{"style":135},[1956],{"type":63,"value":1680},{"type":57,"tag":85,"props":1958,"children":1959},{"style":108},[1960],{"type":63,"value":143},{"type":57,"tag":85,"props":1962,"children":1963},{"style":108},[1964],{"type":63,"value":148},{"type":57,"tag":85,"props":1966,"children":1967},{"class":87,"line":205},[1968],{"type":57,"tag":85,"props":1969,"children":1970},{"emptyLinePlaceholder":155},[1971],{"type":63,"value":158},{"type":57,"tag":85,"props":1973,"children":1974},{"class":87,"line":213},[1975,1979,1983,1987,1991,1995],{"type":57,"tag":85,"props":1976,"children":1977},{"style":165},[1978],{"type":63,"value":168},{"type":57,"tag":85,"props":1980,"children":1981},{"style":114},[1982],{"type":63,"value":1241},{"type":57,"tag":85,"props":1984,"children":1985},{"style":108},[1986],{"type":63,"value":178},{"type":57,"tag":85,"props":1988,"children":1989},{"style":190},[1990],{"type":63,"value":1157},{"type":57,"tag":85,"props":1992,"children":1993},{"style":114},[1994],{"type":63,"value":501},{"type":57,"tag":85,"props":1996,"children":1997},{"style":108},[1998],{"type":63,"value":506},{"type":57,"tag":85,"props":2000,"children":2001},{"class":87,"line":254},[2002,2007,2011,2015],{"type":57,"tag":85,"props":2003,"children":2004},{"style":429},[2005],{"type":63,"value":2006},"  router",{"type":57,"tag":85,"props":2008,"children":2009},{"style":108},[2010],{"type":63,"value":437},{"type":57,"tag":85,"props":2012,"children":2013},{"style":114},[2014],{"type":63,"value":1122},{"type":57,"tag":85,"props":2016,"children":2017},{"style":108},[2018],{"type":63,"value":678},{"type":57,"tag":85,"props":2020,"children":2021},{"class":87,"line":509},[2022,2027],{"type":57,"tag":85,"props":2023,"children":2024},{"style":114},[2025],{"type":63,"value":2026},"  createContext",{"type":57,"tag":85,"props":2028,"children":2029},{"style":108},[2030],{"type":63,"value":678},{"type":57,"tag":85,"props":2032,"children":2033},{"class":87,"line":584},[2034,2038,2042],{"type":57,"tag":85,"props":2035,"children":2036},{"style":108},[2037],{"type":63,"value":939},{"type":57,"tag":85,"props":2039,"children":2040},{"style":114},[2041],{"type":63,"value":673},{"type":57,"tag":85,"props":2043,"children":2044},{"style":108},[2045],{"type":63,"value":148},{"type":57,"tag":85,"props":2047,"children":2048},{"class":87,"line":662},[2049,2053,2057,2061,2065,2069,2073],{"type":57,"tag":85,"props":2050,"children":2051},{"style":114},[2052],{"type":63,"value":1289},{"type":57,"tag":85,"props":2054,"children":2055},{"style":108},[2056],{"type":63,"value":187},{"type":57,"tag":85,"props":2058,"children":2059},{"style":190},[2060],{"type":63,"value":1298},{"type":57,"tag":85,"props":2062,"children":2063},{"style":114},[2064],{"type":63,"value":501},{"type":57,"tag":85,"props":2066,"children":2067},{"style":1305},[2068],{"type":63,"value":1308},{"type":57,"tag":85,"props":2070,"children":2071},{"style":114},[2072],{"type":63,"value":673},{"type":57,"tag":85,"props":2074,"children":2075},{"style":108},[2076],{"type":63,"value":148},{"type":57,"tag":1324,"props":2078,"children":2080},{"id":2079},"innerouter-context-split-for-testability",[2081],{"type":63,"value":2082},"Inner\u002Fouter context split for testability",{"type":57,"tag":73,"props":2084,"children":2086},{"className":75,"code":2085,"language":77,"meta":78,"style":78},"\u002F\u002F server\u002Fcontext.ts\nimport type { CreateHTTPContextOptions } from '@trpc\u002Fserver\u002Fadapters\u002Fstandalone';\nimport { db } from '.\u002Fdb';\n\ninterface CreateInnerContextOptions {\n  session: { user: { email: string } } | null;\n}\n\nexport async function createContextInner(opts?: CreateInnerContextOptions) {\n  return {\n    db,\n    session: opts?.session ?? null,\n  };\n}\n\nexport async function createContext(opts: CreateHTTPContextOptions) {\n  const session = getSessionFromCookie(opts.req);\n  const contextInner = await createContextInner({ session });\n  return {\n    ...contextInner,\n    req: opts.req,\n    res: opts.res,\n  };\n}\n\nexport type Context = Awaited\u003CReturnType\u003Ctypeof createContextInner>>;\n",[2087],{"type":57,"tag":81,"props":2088,"children":2089},{"__ignoreMap":78},[2090,2097,2140,2181,2188,2205,2269,2276,2283,2328,2339,2351,2387,2395,2402,2409,2452,2497,2546,2557,2574,2602,2631,2638,2646,2654],{"type":57,"tag":85,"props":2091,"children":2092},{"class":87,"line":88},[2093],{"type":57,"tag":85,"props":2094,"children":2095},{"style":92},[2096],{"type":63,"value":1344},{"type":57,"tag":85,"props":2098,"children":2099},{"class":87,"line":98},[2100,2104,2108,2112,2116,2120,2124,2128,2132,2136],{"type":57,"tag":85,"props":2101,"children":2102},{"style":102},[2103],{"type":63,"value":105},{"type":57,"tag":85,"props":2105,"children":2106},{"style":102},[2107],{"type":63,"value":1103},{"type":57,"tag":85,"props":2109,"children":2110},{"style":108},[2111],{"type":63,"value":111},{"type":57,"tag":85,"props":2113,"children":2114},{"style":114},[2115],{"type":63,"value":1364},{"type":57,"tag":85,"props":2117,"children":2118},{"style":108},[2119],{"type":63,"value":122},{"type":57,"tag":85,"props":2121,"children":2122},{"style":102},[2123],{"type":63,"value":127},{"type":57,"tag":85,"props":2125,"children":2126},{"style":108},[2127],{"type":63,"value":132},{"type":57,"tag":85,"props":2129,"children":2130},{"style":135},[2131],{"type":63,"value":1174},{"type":57,"tag":85,"props":2133,"children":2134},{"style":108},[2135],{"type":63,"value":143},{"type":57,"tag":85,"props":2137,"children":2138},{"style":108},[2139],{"type":63,"value":148},{"type":57,"tag":85,"props":2141,"children":2142},{"class":87,"line":151},[2143,2147,2151,2156,2160,2164,2168,2173,2177],{"type":57,"tag":85,"props":2144,"children":2145},{"style":102},[2146],{"type":63,"value":105},{"type":57,"tag":85,"props":2148,"children":2149},{"style":108},[2150],{"type":63,"value":111},{"type":57,"tag":85,"props":2152,"children":2153},{"style":114},[2154],{"type":63,"value":2155}," db",{"type":57,"tag":85,"props":2157,"children":2158},{"style":108},[2159],{"type":63,"value":122},{"type":57,"tag":85,"props":2161,"children":2162},{"style":102},[2163],{"type":63,"value":127},{"type":57,"tag":85,"props":2165,"children":2166},{"style":108},[2167],{"type":63,"value":132},{"type":57,"tag":85,"props":2169,"children":2170},{"style":135},[2171],{"type":63,"value":2172},".\u002Fdb",{"type":57,"tag":85,"props":2174,"children":2175},{"style":108},[2176],{"type":63,"value":143},{"type":57,"tag":85,"props":2178,"children":2179},{"style":108},[2180],{"type":63,"value":148},{"type":57,"tag":85,"props":2182,"children":2183},{"class":87,"line":161},[2184],{"type":57,"tag":85,"props":2185,"children":2186},{"emptyLinePlaceholder":155},[2187],{"type":63,"value":158},{"type":57,"tag":85,"props":2189,"children":2190},{"class":87,"line":205},[2191,2196,2201],{"type":57,"tag":85,"props":2192,"children":2193},{"style":165},[2194],{"type":63,"value":2195},"interface",{"type":57,"tag":85,"props":2197,"children":2198},{"style":414},[2199],{"type":63,"value":2200}," CreateInnerContextOptions",{"type":57,"tag":85,"props":2202,"children":2203},{"style":108},[2204],{"type":63,"value":581},{"type":57,"tag":85,"props":2206,"children":2207},{"class":87,"line":213},[2208,2213,2217,2221,2226,2230,2234,2239,2243,2247,2251,2255,2260,2265],{"type":57,"tag":85,"props":2209,"children":2210},{"style":429},[2211],{"type":63,"value":2212},"  session",{"type":57,"tag":85,"props":2214,"children":2215},{"style":108},[2216],{"type":63,"value":437},{"type":57,"tag":85,"props":2218,"children":2219},{"style":108},[2220],{"type":63,"value":111},{"type":57,"tag":85,"props":2222,"children":2223},{"style":429},[2224],{"type":63,"value":2225}," user",{"type":57,"tag":85,"props":2227,"children":2228},{"style":108},[2229],{"type":63,"value":437},{"type":57,"tag":85,"props":2231,"children":2232},{"style":108},[2233],{"type":63,"value":111},{"type":57,"tag":85,"props":2235,"children":2236},{"style":429},[2237],{"type":63,"value":2238}," email",{"type":57,"tag":85,"props":2240,"children":2241},{"style":108},[2242],{"type":63,"value":437},{"type":57,"tag":85,"props":2244,"children":2245},{"style":414},[2246],{"type":63,"value":442},{"type":57,"tag":85,"props":2248,"children":2249},{"style":108},[2250],{"type":63,"value":122},{"type":57,"tag":85,"props":2252,"children":2253},{"style":108},[2254],{"type":63,"value":122},{"type":57,"tag":85,"props":2256,"children":2257},{"style":108},[2258],{"type":63,"value":2259}," |",{"type":57,"tag":85,"props":2261,"children":2262},{"style":414},[2263],{"type":63,"value":2264}," null",{"type":57,"tag":85,"props":2266,"children":2267},{"style":108},[2268],{"type":63,"value":148},{"type":57,"tag":85,"props":2270,"children":2271},{"class":87,"line":254},[2272],{"type":57,"tag":85,"props":2273,"children":2274},{"style":108},[2275],{"type":63,"value":1536},{"type":57,"tag":85,"props":2277,"children":2278},{"class":87,"line":509},[2279],{"type":57,"tag":85,"props":2280,"children":2281},{"emptyLinePlaceholder":155},[2282],{"type":63,"value":158},{"type":57,"tag":85,"props":2284,"children":2285},{"class":87,"line":584},[2286,2290,2294,2298,2303,2307,2311,2316,2320,2324],{"type":57,"tag":85,"props":2287,"children":2288},{"style":102},[2289],{"type":63,"value":219},{"type":57,"tag":85,"props":2291,"children":2292},{"style":165},[2293],{"type":63,"value":1407},{"type":57,"tag":85,"props":2295,"children":2296},{"style":165},[2297],{"type":63,"value":1412},{"type":57,"tag":85,"props":2299,"children":2300},{"style":190},[2301],{"type":63,"value":2302}," createContextInner",{"type":57,"tag":85,"props":2304,"children":2305},{"style":108},[2306],{"type":63,"value":501},{"type":57,"tag":85,"props":2308,"children":2309},{"style":757},[2310],{"type":63,"value":1426},{"type":57,"tag":85,"props":2312,"children":2313},{"style":108},[2314],{"type":63,"value":2315},"?:",{"type":57,"tag":85,"props":2317,"children":2318},{"style":414},[2319],{"type":63,"value":2200},{"type":57,"tag":85,"props":2321,"children":2322},{"style":108},[2323],{"type":63,"value":673},{"type":57,"tag":85,"props":2325,"children":2326},{"style":108},[2327],{"type":63,"value":581},{"type":57,"tag":85,"props":2329,"children":2330},{"class":87,"line":662},[2331,2335],{"type":57,"tag":85,"props":2332,"children":2333},{"style":102},[2334],{"type":63,"value":1516},{"type":57,"tag":85,"props":2336,"children":2337},{"style":108},[2338],{"type":63,"value":581},{"type":57,"tag":85,"props":2340,"children":2341},{"class":87,"line":681},[2342,2347],{"type":57,"tag":85,"props":2343,"children":2344},{"style":114},[2345],{"type":63,"value":2346},"    db",{"type":57,"tag":85,"props":2348,"children":2349},{"style":108},[2350],{"type":63,"value":678},{"type":57,"tag":85,"props":2352,"children":2353},{"class":87,"line":699},[2354,2359,2363,2367,2372,2377,2382],{"type":57,"tag":85,"props":2355,"children":2356},{"style":429},[2357],{"type":63,"value":2358},"    session",{"type":57,"tag":85,"props":2360,"children":2361},{"style":108},[2362],{"type":63,"value":437},{"type":57,"tag":85,"props":2364,"children":2365},{"style":114},[2366],{"type":63,"value":1464},{"type":57,"tag":85,"props":2368,"children":2369},{"style":108},[2370],{"type":63,"value":2371},"?.",{"type":57,"tag":85,"props":2373,"children":2374},{"style":114},[2375],{"type":63,"value":2376},"session",{"type":57,"tag":85,"props":2378,"children":2379},{"style":108},[2380],{"type":63,"value":2381}," ??",{"type":57,"tag":85,"props":2383,"children":2384},{"style":108},[2385],{"type":63,"value":2386}," null,\n",{"type":57,"tag":85,"props":2388,"children":2389},{"class":87,"line":732},[2390],{"type":57,"tag":85,"props":2391,"children":2392},{"style":108},[2393],{"type":63,"value":2394},"  };\n",{"type":57,"tag":85,"props":2396,"children":2397},{"class":87,"line":792},[2398],{"type":57,"tag":85,"props":2399,"children":2400},{"style":108},[2401],{"type":63,"value":1536},{"type":57,"tag":85,"props":2403,"children":2404},{"class":87,"line":845},[2405],{"type":57,"tag":85,"props":2406,"children":2407},{"emptyLinePlaceholder":155},[2408],{"type":63,"value":158},{"type":57,"tag":85,"props":2410,"children":2411},{"class":87,"line":862},[2412,2416,2420,2424,2428,2432,2436,2440,2444,2448],{"type":57,"tag":85,"props":2413,"children":2414},{"style":102},[2415],{"type":63,"value":219},{"type":57,"tag":85,"props":2417,"children":2418},{"style":165},[2419],{"type":63,"value":1407},{"type":57,"tag":85,"props":2421,"children":2422},{"style":165},[2423],{"type":63,"value":1412},{"type":57,"tag":85,"props":2425,"children":2426},{"style":190},[2427],{"type":63,"value":1417},{"type":57,"tag":85,"props":2429,"children":2430},{"style":108},[2431],{"type":63,"value":501},{"type":57,"tag":85,"props":2433,"children":2434},{"style":757},[2435],{"type":63,"value":1426},{"type":57,"tag":85,"props":2437,"children":2438},{"style":108},[2439],{"type":63,"value":437},{"type":57,"tag":85,"props":2441,"children":2442},{"style":414},[2443],{"type":63,"value":1364},{"type":57,"tag":85,"props":2445,"children":2446},{"style":108},[2447],{"type":63,"value":673},{"type":57,"tag":85,"props":2449,"children":2450},{"style":108},[2451],{"type":63,"value":581},{"type":57,"tag":85,"props":2453,"children":2454},{"class":87,"line":879},[2455,2459,2464,2468,2473,2477,2481,2485,2489,2493],{"type":57,"tag":85,"props":2456,"children":2457},{"style":165},[2458],{"type":63,"value":1450},{"type":57,"tag":85,"props":2460,"children":2461},{"style":114},[2462],{"type":63,"value":2463}," session",{"type":57,"tag":85,"props":2465,"children":2466},{"style":108},[2467],{"type":63,"value":422},{"type":57,"tag":85,"props":2469,"children":2470},{"style":190},[2471],{"type":63,"value":2472}," getSessionFromCookie",{"type":57,"tag":85,"props":2474,"children":2475},{"style":429},[2476],{"type":63,"value":501},{"type":57,"tag":85,"props":2478,"children":2479},{"style":114},[2480],{"type":63,"value":1426},{"type":57,"tag":85,"props":2482,"children":2483},{"style":108},[2484],{"type":63,"value":187},{"type":57,"tag":85,"props":2486,"children":2487},{"style":114},[2488],{"type":63,"value":1473},{"type":57,"tag":85,"props":2490,"children":2491},{"style":429},[2492],{"type":63,"value":673},{"type":57,"tag":85,"props":2494,"children":2495},{"style":108},[2496],{"type":63,"value":148},{"type":57,"tag":85,"props":2498,"children":2499},{"class":87,"line":947},[2500,2504,2509,2513,2518,2522,2526,2530,2534,2538,2542],{"type":57,"tag":85,"props":2501,"children":2502},{"style":165},[2503],{"type":63,"value":1450},{"type":57,"tag":85,"props":2505,"children":2506},{"style":114},[2507],{"type":63,"value":2508}," contextInner",{"type":57,"tag":85,"props":2510,"children":2511},{"style":108},[2512],{"type":63,"value":422},{"type":57,"tag":85,"props":2514,"children":2515},{"style":102},[2516],{"type":63,"value":2517}," await",{"type":57,"tag":85,"props":2519,"children":2520},{"style":190},[2521],{"type":63,"value":2302},{"type":57,"tag":85,"props":2523,"children":2524},{"style":429},[2525],{"type":63,"value":501},{"type":57,"tag":85,"props":2527,"children":2528},{"style":108},[2529],{"type":63,"value":600},{"type":57,"tag":85,"props":2531,"children":2532},{"style":114},[2533],{"type":63,"value":2463},{"type":57,"tag":85,"props":2535,"children":2536},{"style":108},[2537],{"type":63,"value":122},{"type":57,"tag":85,"props":2539,"children":2540},{"style":429},[2541],{"type":63,"value":673},{"type":57,"tag":85,"props":2543,"children":2544},{"style":108},[2545],{"type":63,"value":148},{"type":57,"tag":85,"props":2547,"children":2548},{"class":87,"line":1004},[2549,2553],{"type":57,"tag":85,"props":2550,"children":2551},{"style":102},[2552],{"type":63,"value":1516},{"type":57,"tag":85,"props":2554,"children":2555},{"style":108},[2556],{"type":63,"value":581},{"type":57,"tag":85,"props":2558,"children":2559},{"class":87,"line":1053},[2560,2565,2570],{"type":57,"tag":85,"props":2561,"children":2562},{"style":108},[2563],{"type":63,"value":2564},"    ...",{"type":57,"tag":85,"props":2566,"children":2567},{"style":114},[2568],{"type":63,"value":2569},"contextInner",{"type":57,"tag":85,"props":2571,"children":2572},{"style":108},[2573],{"type":63,"value":678},{"type":57,"tag":85,"props":2575,"children":2576},{"class":87,"line":1069},[2577,2582,2586,2590,2594,2598],{"type":57,"tag":85,"props":2578,"children":2579},{"style":429},[2580],{"type":63,"value":2581},"    req",{"type":57,"tag":85,"props":2583,"children":2584},{"style":108},[2585],{"type":63,"value":437},{"type":57,"tag":85,"props":2587,"children":2588},{"style":114},[2589],{"type":63,"value":1464},{"type":57,"tag":85,"props":2591,"children":2592},{"style":108},[2593],{"type":63,"value":187},{"type":57,"tag":85,"props":2595,"children":2596},{"style":114},[2597],{"type":63,"value":1473},{"type":57,"tag":85,"props":2599,"children":2600},{"style":108},[2601],{"type":63,"value":678},{"type":57,"tag":85,"props":2603,"children":2604},{"class":87,"line":1085},[2605,2610,2614,2618,2622,2627],{"type":57,"tag":85,"props":2606,"children":2607},{"style":429},[2608],{"type":63,"value":2609},"    res",{"type":57,"tag":85,"props":2611,"children":2612},{"style":108},[2613],{"type":63,"value":437},{"type":57,"tag":85,"props":2615,"children":2616},{"style":114},[2617],{"type":63,"value":1464},{"type":57,"tag":85,"props":2619,"children":2620},{"style":108},[2621],{"type":63,"value":187},{"type":57,"tag":85,"props":2623,"children":2624},{"style":114},[2625],{"type":63,"value":2626},"res",{"type":57,"tag":85,"props":2628,"children":2629},{"style":108},[2630],{"type":63,"value":678},{"type":57,"tag":85,"props":2632,"children":2633},{"class":87,"line":1093},[2634],{"type":57,"tag":85,"props":2635,"children":2636},{"style":108},[2637],{"type":63,"value":2394},{"type":57,"tag":85,"props":2639,"children":2641},{"class":87,"line":2640},24,[2642],{"type":57,"tag":85,"props":2643,"children":2644},{"style":108},[2645],{"type":63,"value":1536},{"type":57,"tag":85,"props":2647,"children":2649},{"class":87,"line":2648},25,[2650],{"type":57,"tag":85,"props":2651,"children":2652},{"emptyLinePlaceholder":155},[2653],{"type":63,"value":158},{"type":57,"tag":85,"props":2655,"children":2657},{"class":87,"line":2656},26,[2658,2662,2666,2670,2674,2678,2682,2686,2690,2694],{"type":57,"tag":85,"props":2659,"children":2660},{"style":102},[2661],{"type":63,"value":219},{"type":57,"tag":85,"props":2663,"children":2664},{"style":165},[2665],{"type":63,"value":1103},{"type":57,"tag":85,"props":2667,"children":2668},{"style":414},[2669],{"type":63,"value":1559},{"type":57,"tag":85,"props":2671,"children":2672},{"style":108},[2673],{"type":63,"value":422},{"type":57,"tag":85,"props":2675,"children":2676},{"style":414},[2677],{"type":63,"value":1568},{"type":57,"tag":85,"props":2679,"children":2680},{"style":108},[2681],{"type":63,"value":556},{"type":57,"tag":85,"props":2683,"children":2684},{"style":414},[2685],{"type":63,"value":1577},{"type":57,"tag":85,"props":2687,"children":2688},{"style":108},[2689],{"type":63,"value":1582},{"type":57,"tag":85,"props":2691,"children":2692},{"style":114},[2693],{"type":63,"value":2302},{"type":57,"tag":85,"props":2695,"children":2696},{"style":108},[2697],{"type":63,"value":1591},{"type":57,"tag":2699,"props":2700,"children":2701},"p",{},[2702,2704,2709,2711,2717],{"type":63,"value":2703},"Infer ",{"type":57,"tag":81,"props":2705,"children":2707},{"className":2706},[],[2708],{"type":63,"value":1732},{"type":63,"value":2710}," from ",{"type":57,"tag":81,"props":2712,"children":2714},{"className":2713},[],[2715],{"type":63,"value":2716},"createContextInner",{"type":63,"value":2718}," so server-side callers and tests never need HTTP request objects.",{"type":57,"tag":1324,"props":2720,"children":2722},{"id":2721},"merging-child-routers",[2723],{"type":63,"value":2724},"Merging child routers",{"type":57,"tag":73,"props":2726,"children":2728},{"className":75,"code":2727,"language":77,"meta":78,"style":78},"\u002F\u002F server\u002Frouters\u002Fuser.ts\nimport { publicProcedure, router } from '..\u002Ftrpc';\n\nexport const userRouter = router({\n  list: publicProcedure.query(() => []),\n});\n",[2729],{"type":57,"tag":81,"props":2730,"children":2731},{"__ignoreMap":78},[2732,2740,2788,2795,2827,2872],{"type":57,"tag":85,"props":2733,"children":2734},{"class":87,"line":88},[2735],{"type":57,"tag":85,"props":2736,"children":2737},{"style":92},[2738],{"type":63,"value":2739},"\u002F\u002F server\u002Frouters\u002Fuser.ts\n",{"type":57,"tag":85,"props":2741,"children":2742},{"class":87,"line":98},[2743,2747,2751,2755,2759,2763,2767,2771,2775,2780,2784],{"type":57,"tag":85,"props":2744,"children":2745},{"style":102},[2746],{"type":63,"value":105},{"type":57,"tag":85,"props":2748,"children":2749},{"style":108},[2750],{"type":63,"value":111},{"type":57,"tag":85,"props":2752,"children":2753},{"style":114},[2754],{"type":63,"value":361},{"type":57,"tag":85,"props":2756,"children":2757},{"style":108},[2758],{"type":63,"value":366},{"type":57,"tag":85,"props":2760,"children":2761},{"style":114},[2762],{"type":63,"value":371},{"type":57,"tag":85,"props":2764,"children":2765},{"style":108},[2766],{"type":63,"value":122},{"type":57,"tag":85,"props":2768,"children":2769},{"style":102},[2770],{"type":63,"value":127},{"type":57,"tag":85,"props":2772,"children":2773},{"style":108},[2774],{"type":63,"value":132},{"type":57,"tag":85,"props":2776,"children":2777},{"style":135},[2778],{"type":63,"value":2779},"..\u002Ftrpc",{"type":57,"tag":85,"props":2781,"children":2782},{"style":108},[2783],{"type":63,"value":143},{"type":57,"tag":85,"props":2785,"children":2786},{"style":108},[2787],{"type":63,"value":148},{"type":57,"tag":85,"props":2789,"children":2790},{"class":87,"line":151},[2791],{"type":57,"tag":85,"props":2792,"children":2793},{"emptyLinePlaceholder":155},[2794],{"type":63,"value":158},{"type":57,"tag":85,"props":2796,"children":2797},{"class":87,"line":161},[2798,2802,2806,2811,2815,2819,2823],{"type":57,"tag":85,"props":2799,"children":2800},{"style":102},[2801],{"type":63,"value":219},{"type":57,"tag":85,"props":2803,"children":2804},{"style":165},[2805],{"type":63,"value":224},{"type":57,"tag":85,"props":2807,"children":2808},{"style":114},[2809],{"type":63,"value":2810}," userRouter ",{"type":57,"tag":85,"props":2812,"children":2813},{"style":108},[2814],{"type":63,"value":178},{"type":57,"tag":85,"props":2816,"children":2817},{"style":190},[2818],{"type":63,"value":371},{"type":57,"tag":85,"props":2820,"children":2821},{"style":114},[2822],{"type":63,"value":501},{"type":57,"tag":85,"props":2824,"children":2825},{"style":108},[2826],{"type":63,"value":506},{"type":57,"tag":85,"props":2828,"children":2829},{"class":87,"line":205},[2830,2835,2839,2843,2847,2851,2855,2859,2863,2868],{"type":57,"tag":85,"props":2831,"children":2832},{"style":429},[2833],{"type":63,"value":2834},"  list",{"type":57,"tag":85,"props":2836,"children":2837},{"style":108},[2838],{"type":63,"value":437},{"type":57,"tag":85,"props":2840,"children":2841},{"style":114},[2842],{"type":63,"value":361},{"type":57,"tag":85,"props":2844,"children":2845},{"style":108},[2846],{"type":63,"value":187},{"type":57,"tag":85,"props":2848,"children":2849},{"style":190},[2850],{"type":63,"value":532},{"type":57,"tag":85,"props":2852,"children":2853},{"style":114},[2854],{"type":63,"value":501},{"type":57,"tag":85,"props":2856,"children":2857},{"style":108},[2858],{"type":63,"value":198},{"type":57,"tag":85,"props":2860,"children":2861},{"style":165},[2862],{"type":63,"value":576},{"type":57,"tag":85,"props":2864,"children":2865},{"style":114},[2866],{"type":63,"value":2867}," [])",{"type":57,"tag":85,"props":2869,"children":2870},{"style":108},[2871],{"type":63,"value":678},{"type":57,"tag":85,"props":2873,"children":2874},{"class":87,"line":213},[2875,2879,2883],{"type":57,"tag":85,"props":2876,"children":2877},{"style":108},[2878],{"type":63,"value":939},{"type":57,"tag":85,"props":2880,"children":2881},{"style":114},[2882],{"type":63,"value":673},{"type":57,"tag":85,"props":2884,"children":2885},{"style":108},[2886],{"type":63,"value":148},{"type":57,"tag":73,"props":2888,"children":2890},{"className":75,"code":2889,"language":77,"meta":78,"style":78},"\u002F\u002F server\u002Frouters\u002Fpost.ts\nimport { z } from 'zod';\nimport { publicProcedure, router } from '..\u002Ftrpc';\n\nexport const postRouter = router({\n  create: publicProcedure\n    .input(z.object({ title: z.string() }))\n    .mutation(({ input }) => ({ id: '1', ...input })),\n  list: publicProcedure.query(() => []),\n});\n",[2891],{"type":57,"tag":81,"props":2892,"children":2893},{"__ignoreMap":78},[2894,2902,2941,2988,2995,3027,3043,3107,3195,3238],{"type":57,"tag":85,"props":2895,"children":2896},{"class":87,"line":88},[2897],{"type":57,"tag":85,"props":2898,"children":2899},{"style":92},[2900],{"type":63,"value":2901},"\u002F\u002F server\u002Frouters\u002Fpost.ts\n",{"type":57,"tag":85,"props":2903,"children":2904},{"class":87,"line":98},[2905,2909,2913,2917,2921,2925,2929,2933,2937],{"type":57,"tag":85,"props":2906,"children":2907},{"style":102},[2908],{"type":63,"value":105},{"type":57,"tag":85,"props":2910,"children":2911},{"style":108},[2912],{"type":63,"value":111},{"type":57,"tag":85,"props":2914,"children":2915},{"style":114},[2916],{"type":63,"value":320},{"type":57,"tag":85,"props":2918,"children":2919},{"style":108},[2920],{"type":63,"value":122},{"type":57,"tag":85,"props":2922,"children":2923},{"style":102},[2924],{"type":63,"value":127},{"type":57,"tag":85,"props":2926,"children":2927},{"style":108},[2928],{"type":63,"value":132},{"type":57,"tag":85,"props":2930,"children":2931},{"style":135},[2932],{"type":63,"value":337},{"type":57,"tag":85,"props":2934,"children":2935},{"style":108},[2936],{"type":63,"value":143},{"type":57,"tag":85,"props":2938,"children":2939},{"style":108},[2940],{"type":63,"value":148},{"type":57,"tag":85,"props":2942,"children":2943},{"class":87,"line":151},[2944,2948,2952,2956,2960,2964,2968,2972,2976,2980,2984],{"type":57,"tag":85,"props":2945,"children":2946},{"style":102},[2947],{"type":63,"value":105},{"type":57,"tag":85,"props":2949,"children":2950},{"style":108},[2951],{"type":63,"value":111},{"type":57,"tag":85,"props":2953,"children":2954},{"style":114},[2955],{"type":63,"value":361},{"type":57,"tag":85,"props":2957,"children":2958},{"style":108},[2959],{"type":63,"value":366},{"type":57,"tag":85,"props":2961,"children":2962},{"style":114},[2963],{"type":63,"value":371},{"type":57,"tag":85,"props":2965,"children":2966},{"style":108},[2967],{"type":63,"value":122},{"type":57,"tag":85,"props":2969,"children":2970},{"style":102},[2971],{"type":63,"value":127},{"type":57,"tag":85,"props":2973,"children":2974},{"style":108},[2975],{"type":63,"value":132},{"type":57,"tag":85,"props":2977,"children":2978},{"style":135},[2979],{"type":63,"value":2779},{"type":57,"tag":85,"props":2981,"children":2982},{"style":108},[2983],{"type":63,"value":143},{"type":57,"tag":85,"props":2985,"children":2986},{"style":108},[2987],{"type":63,"value":148},{"type":57,"tag":85,"props":2989,"children":2990},{"class":87,"line":161},[2991],{"type":57,"tag":85,"props":2992,"children":2993},{"emptyLinePlaceholder":155},[2994],{"type":63,"value":158},{"type":57,"tag":85,"props":2996,"children":2997},{"class":87,"line":205},[2998,3002,3006,3011,3015,3019,3023],{"type":57,"tag":85,"props":2999,"children":3000},{"style":102},[3001],{"type":63,"value":219},{"type":57,"tag":85,"props":3003,"children":3004},{"style":165},[3005],{"type":63,"value":224},{"type":57,"tag":85,"props":3007,"children":3008},{"style":114},[3009],{"type":63,"value":3010}," postRouter ",{"type":57,"tag":85,"props":3012,"children":3013},{"style":108},[3014],{"type":63,"value":178},{"type":57,"tag":85,"props":3016,"children":3017},{"style":190},[3018],{"type":63,"value":371},{"type":57,"tag":85,"props":3020,"children":3021},{"style":114},[3022],{"type":63,"value":501},{"type":57,"tag":85,"props":3024,"children":3025},{"style":108},[3026],{"type":63,"value":506},{"type":57,"tag":85,"props":3028,"children":3029},{"class":87,"line":213},[3030,3035,3039],{"type":57,"tag":85,"props":3031,"children":3032},{"style":429},[3033],{"type":63,"value":3034},"  create",{"type":57,"tag":85,"props":3036,"children":3037},{"style":108},[3038],{"type":63,"value":437},{"type":57,"tag":85,"props":3040,"children":3041},{"style":114},[3042],{"type":63,"value":696},{"type":57,"tag":85,"props":3044,"children":3045},{"class":87,"line":254},[3046,3050,3054,3058,3062,3066,3070,3074,3079,3083,3087,3091,3095,3099,3103],{"type":57,"tag":85,"props":3047,"children":3048},{"style":108},[3049],{"type":63,"value":705},{"type":57,"tag":85,"props":3051,"children":3052},{"style":190},[3053],{"type":63,"value":710},{"type":57,"tag":85,"props":3055,"children":3056},{"style":114},[3057],{"type":63,"value":715},{"type":57,"tag":85,"props":3059,"children":3060},{"style":108},[3061],{"type":63,"value":187},{"type":57,"tag":85,"props":3063,"children":3064},{"style":190},[3065],{"type":63,"value":901},{"type":57,"tag":85,"props":3067,"children":3068},{"style":114},[3069],{"type":63,"value":501},{"type":57,"tag":85,"props":3071,"children":3072},{"style":108},[3073],{"type":63,"value":600},{"type":57,"tag":85,"props":3075,"children":3076},{"style":429},[3077],{"type":63,"value":3078}," title",{"type":57,"tag":85,"props":3080,"children":3081},{"style":108},[3082],{"type":63,"value":437},{"type":57,"tag":85,"props":3084,"children":3085},{"style":114},[3086],{"type":63,"value":320},{"type":57,"tag":85,"props":3088,"children":3089},{"style":108},[3090],{"type":63,"value":187},{"type":57,"tag":85,"props":3092,"children":3093},{"style":190},[3094],{"type":63,"value":724},{"type":57,"tag":85,"props":3096,"children":3097},{"style":114},[3098],{"type":63,"value":934},{"type":57,"tag":85,"props":3100,"children":3101},{"style":108},[3102],{"type":63,"value":939},{"type":57,"tag":85,"props":3104,"children":3105},{"style":114},[3106],{"type":63,"value":944},{"type":57,"tag":85,"props":3108,"children":3109},{"class":87,"line":509},[3110,3114,3118,3122,3127,3131,3136,3140,3145,3149,3153,3157,3161,3165,3169,3173,3177,3182,3186,3191],{"type":57,"tag":85,"props":3111,"children":3112},{"style":108},[3113],{"type":63,"value":705},{"type":57,"tag":85,"props":3115,"children":3116},{"style":190},[3117],{"type":63,"value":957},{"type":57,"tag":85,"props":3119,"children":3120},{"style":114},[3121],{"type":63,"value":501},{"type":57,"tag":85,"props":3123,"children":3124},{"style":108},[3125],{"type":63,"value":3126},"({",{"type":57,"tag":85,"props":3128,"children":3129},{"style":757},[3130],{"type":63,"value":760},{"type":57,"tag":85,"props":3132,"children":3133},{"style":108},[3134],{"type":63,"value":3135}," })",{"type":57,"tag":85,"props":3137,"children":3138},{"style":165},[3139],{"type":63,"value":576},{"type":57,"tag":85,"props":3141,"children":3142},{"style":114},[3143],{"type":63,"value":3144}," (",{"type":57,"tag":85,"props":3146,"children":3147},{"style":108},[3148],{"type":63,"value":600},{"type":57,"tag":85,"props":3150,"children":3151},{"style":429},[3152],{"type":63,"value":432},{"type":57,"tag":85,"props":3154,"children":3155},{"style":108},[3156],{"type":63,"value":437},{"type":57,"tag":85,"props":3158,"children":3159},{"style":108},[3160],{"type":63,"value":132},{"type":57,"tag":85,"props":3162,"children":3163},{"style":135},[3164],{"type":63,"value":617},{"type":57,"tag":85,"props":3166,"children":3167},{"style":108},[3168],{"type":63,"value":143},{"type":57,"tag":85,"props":3170,"children":3171},{"style":108},[3172],{"type":63,"value":366},{"type":57,"tag":85,"props":3174,"children":3175},{"style":108},[3176],{"type":63,"value":1042},{"type":57,"tag":85,"props":3178,"children":3179},{"style":114},[3180],{"type":63,"value":3181},"input ",{"type":57,"tag":85,"props":3183,"children":3184},{"style":108},[3185],{"type":63,"value":939},{"type":57,"tag":85,"props":3187,"children":3188},{"style":114},[3189],{"type":63,"value":3190},"))",{"type":57,"tag":85,"props":3192,"children":3193},{"style":108},[3194],{"type":63,"value":678},{"type":57,"tag":85,"props":3196,"children":3197},{"class":87,"line":584},[3198,3202,3206,3210,3214,3218,3222,3226,3230,3234],{"type":57,"tag":85,"props":3199,"children":3200},{"style":429},[3201],{"type":63,"value":2834},{"type":57,"tag":85,"props":3203,"children":3204},{"style":108},[3205],{"type":63,"value":437},{"type":57,"tag":85,"props":3207,"children":3208},{"style":114},[3209],{"type":63,"value":361},{"type":57,"tag":85,"props":3211,"children":3212},{"style":108},[3213],{"type":63,"value":187},{"type":57,"tag":85,"props":3215,"children":3216},{"style":190},[3217],{"type":63,"value":532},{"type":57,"tag":85,"props":3219,"children":3220},{"style":114},[3221],{"type":63,"value":501},{"type":57,"tag":85,"props":3223,"children":3224},{"style":108},[3225],{"type":63,"value":198},{"type":57,"tag":85,"props":3227,"children":3228},{"style":165},[3229],{"type":63,"value":576},{"type":57,"tag":85,"props":3231,"children":3232},{"style":114},[3233],{"type":63,"value":2867},{"type":57,"tag":85,"props":3235,"children":3236},{"style":108},[3237],{"type":63,"value":678},{"type":57,"tag":85,"props":3239,"children":3240},{"class":87,"line":662},[3241,3245,3249],{"type":57,"tag":85,"props":3242,"children":3243},{"style":108},[3244],{"type":63,"value":939},{"type":57,"tag":85,"props":3246,"children":3247},{"style":114},[3248],{"type":63,"value":673},{"type":57,"tag":85,"props":3250,"children":3251},{"style":108},[3252],{"type":63,"value":148},{"type":57,"tag":73,"props":3254,"children":3256},{"className":75,"code":3255,"language":77,"meta":78,"style":78},"\u002F\u002F server\u002Frouters\u002F_app.ts\nimport { router } from '..\u002Ftrpc';\nimport { postRouter } from '.\u002Fpost';\nimport { userRouter } from '.\u002Fuser';\n\nexport const appRouter = router({\n  user: userRouter,\n  post: postRouter,\n});\n\nexport type AppRouter = typeof appRouter;\n",[3257],{"type":57,"tag":81,"props":3258,"children":3259},{"__ignoreMap":78},[3260,3268,3307,3348,3389,3396,3427,3447,3467,3482,3489],{"type":57,"tag":85,"props":3261,"children":3262},{"class":87,"line":88},[3263],{"type":57,"tag":85,"props":3264,"children":3265},{"style":92},[3266],{"type":63,"value":3267},"\u002F\u002F server\u002Frouters\u002F_app.ts\n",{"type":57,"tag":85,"props":3269,"children":3270},{"class":87,"line":98},[3271,3275,3279,3283,3287,3291,3295,3299,3303],{"type":57,"tag":85,"props":3272,"children":3273},{"style":102},[3274],{"type":63,"value":105},{"type":57,"tag":85,"props":3276,"children":3277},{"style":108},[3278],{"type":63,"value":111},{"type":57,"tag":85,"props":3280,"children":3281},{"style":114},[3282],{"type":63,"value":371},{"type":57,"tag":85,"props":3284,"children":3285},{"style":108},[3286],{"type":63,"value":122},{"type":57,"tag":85,"props":3288,"children":3289},{"style":102},[3290],{"type":63,"value":127},{"type":57,"tag":85,"props":3292,"children":3293},{"style":108},[3294],{"type":63,"value":132},{"type":57,"tag":85,"props":3296,"children":3297},{"style":135},[3298],{"type":63,"value":2779},{"type":57,"tag":85,"props":3300,"children":3301},{"style":108},[3302],{"type":63,"value":143},{"type":57,"tag":85,"props":3304,"children":3305},{"style":108},[3306],{"type":63,"value":148},{"type":57,"tag":85,"props":3308,"children":3309},{"class":87,"line":151},[3310,3314,3318,3323,3327,3331,3335,3340,3344],{"type":57,"tag":85,"props":3311,"children":3312},{"style":102},[3313],{"type":63,"value":105},{"type":57,"tag":85,"props":3315,"children":3316},{"style":108},[3317],{"type":63,"value":111},{"type":57,"tag":85,"props":3319,"children":3320},{"style":114},[3321],{"type":63,"value":3322}," postRouter",{"type":57,"tag":85,"props":3324,"children":3325},{"style":108},[3326],{"type":63,"value":122},{"type":57,"tag":85,"props":3328,"children":3329},{"style":102},[3330],{"type":63,"value":127},{"type":57,"tag":85,"props":3332,"children":3333},{"style":108},[3334],{"type":63,"value":132},{"type":57,"tag":85,"props":3336,"children":3337},{"style":135},[3338],{"type":63,"value":3339},".\u002Fpost",{"type":57,"tag":85,"props":3341,"children":3342},{"style":108},[3343],{"type":63,"value":143},{"type":57,"tag":85,"props":3345,"children":3346},{"style":108},[3347],{"type":63,"value":148},{"type":57,"tag":85,"props":3349,"children":3350},{"class":87,"line":161},[3351,3355,3359,3364,3368,3372,3376,3381,3385],{"type":57,"tag":85,"props":3352,"children":3353},{"style":102},[3354],{"type":63,"value":105},{"type":57,"tag":85,"props":3356,"children":3357},{"style":108},[3358],{"type":63,"value":111},{"type":57,"tag":85,"props":3360,"children":3361},{"style":114},[3362],{"type":63,"value":3363}," userRouter",{"type":57,"tag":85,"props":3365,"children":3366},{"style":108},[3367],{"type":63,"value":122},{"type":57,"tag":85,"props":3369,"children":3370},{"style":102},[3371],{"type":63,"value":127},{"type":57,"tag":85,"props":3373,"children":3374},{"style":108},[3375],{"type":63,"value":132},{"type":57,"tag":85,"props":3377,"children":3378},{"style":135},[3379],{"type":63,"value":3380},".\u002Fuser",{"type":57,"tag":85,"props":3382,"children":3383},{"style":108},[3384],{"type":63,"value":143},{"type":57,"tag":85,"props":3386,"children":3387},{"style":108},[3388],{"type":63,"value":148},{"type":57,"tag":85,"props":3390,"children":3391},{"class":87,"line":205},[3392],{"type":57,"tag":85,"props":3393,"children":3394},{"emptyLinePlaceholder":155},[3395],{"type":63,"value":158},{"type":57,"tag":85,"props":3397,"children":3398},{"class":87,"line":213},[3399,3403,3407,3411,3415,3419,3423],{"type":57,"tag":85,"props":3400,"children":3401},{"style":102},[3402],{"type":63,"value":219},{"type":57,"tag":85,"props":3404,"children":3405},{"style":165},[3406],{"type":63,"value":224},{"type":57,"tag":85,"props":3408,"children":3409},{"style":114},[3410],{"type":63,"value":488},{"type":57,"tag":85,"props":3412,"children":3413},{"style":108},[3414],{"type":63,"value":178},{"type":57,"tag":85,"props":3416,"children":3417},{"style":190},[3418],{"type":63,"value":371},{"type":57,"tag":85,"props":3420,"children":3421},{"style":114},[3422],{"type":63,"value":501},{"type":57,"tag":85,"props":3424,"children":3425},{"style":108},[3426],{"type":63,"value":506},{"type":57,"tag":85,"props":3428,"children":3429},{"class":87,"line":254},[3430,3435,3439,3443],{"type":57,"tag":85,"props":3431,"children":3432},{"style":429},[3433],{"type":63,"value":3434},"  user",{"type":57,"tag":85,"props":3436,"children":3437},{"style":108},[3438],{"type":63,"value":437},{"type":57,"tag":85,"props":3440,"children":3441},{"style":114},[3442],{"type":63,"value":3363},{"type":57,"tag":85,"props":3444,"children":3445},{"style":108},[3446],{"type":63,"value":678},{"type":57,"tag":85,"props":3448,"children":3449},{"class":87,"line":509},[3450,3455,3459,3463],{"type":57,"tag":85,"props":3451,"children":3452},{"style":429},[3453],{"type":63,"value":3454},"  post",{"type":57,"tag":85,"props":3456,"children":3457},{"style":108},[3458],{"type":63,"value":437},{"type":57,"tag":85,"props":3460,"children":3461},{"style":114},[3462],{"type":63,"value":3322},{"type":57,"tag":85,"props":3464,"children":3465},{"style":108},[3466],{"type":63,"value":678},{"type":57,"tag":85,"props":3468,"children":3469},{"class":87,"line":584},[3470,3474,3478],{"type":57,"tag":85,"props":3471,"children":3472},{"style":108},[3473],{"type":63,"value":939},{"type":57,"tag":85,"props":3475,"children":3476},{"style":114},[3477],{"type":63,"value":673},{"type":57,"tag":85,"props":3479,"children":3480},{"style":108},[3481],{"type":63,"value":148},{"type":57,"tag":85,"props":3483,"children":3484},{"class":87,"line":662},[3485],{"type":57,"tag":85,"props":3486,"children":3487},{"emptyLinePlaceholder":155},[3488],{"type":63,"value":158},{"type":57,"tag":85,"props":3490,"children":3491},{"class":87,"line":681},[3492,3496,3500,3504,3508,3512,3516],{"type":57,"tag":85,"props":3493,"children":3494},{"style":102},[3495],{"type":63,"value":219},{"type":57,"tag":85,"props":3497,"children":3498},{"style":165},[3499],{"type":63,"value":1103},{"type":57,"tag":85,"props":3501,"children":3502},{"style":414},[3503],{"type":63,"value":1108},{"type":57,"tag":85,"props":3505,"children":3506},{"style":108},[3507],{"type":63,"value":422},{"type":57,"tag":85,"props":3509,"children":3510},{"style":108},[3511],{"type":63,"value":1117},{"type":57,"tag":85,"props":3513,"children":3514},{"style":114},[3515],{"type":63,"value":1122},{"type":57,"tag":85,"props":3517,"children":3518},{"style":108},[3519],{"type":63,"value":148},{"type":57,"tag":1324,"props":3521,"children":3523},{"id":3522},"lazy-loaded-routers-for-serverless-cold-starts",[3524],{"type":63,"value":3525},"Lazy-loaded routers for serverless cold starts",{"type":57,"tag":73,"props":3527,"children":3529},{"className":75,"code":3528,"language":77,"meta":78,"style":78},"\u002F\u002F server\u002Frouters\u002F_app.ts\nimport { lazy } from '@trpc\u002Fserver';\nimport { router } from '..\u002Ftrpc';\n\nexport const appRouter = router({\n  \u002F\u002F Short-hand when the module has exactly one router exported\n  greeting: lazy(() => import('.\u002Fgreeting.js')),\n  \u002F\u002F Use .then() to pick a named export when the module exports multiple routers\n  user: lazy(() => import('.\u002Fuser.js').then((m) => m.userRouter)),\n});\n\nexport type AppRouter = typeof appRouter;\n",[3530],{"type":57,"tag":81,"props":3531,"children":3532},{"__ignoreMap":78},[3533,3540,3580,3619,3626,3657,3665,3723,3731,3831,3846,3853],{"type":57,"tag":85,"props":3534,"children":3535},{"class":87,"line":88},[3536],{"type":57,"tag":85,"props":3537,"children":3538},{"style":92},[3539],{"type":63,"value":3267},{"type":57,"tag":85,"props":3541,"children":3542},{"class":87,"line":98},[3543,3547,3551,3556,3560,3564,3568,3572,3576],{"type":57,"tag":85,"props":3544,"children":3545},{"style":102},[3546],{"type":63,"value":105},{"type":57,"tag":85,"props":3548,"children":3549},{"style":108},[3550],{"type":63,"value":111},{"type":57,"tag":85,"props":3552,"children":3553},{"style":114},[3554],{"type":63,"value":3555}," lazy",{"type":57,"tag":85,"props":3557,"children":3558},{"style":108},[3559],{"type":63,"value":122},{"type":57,"tag":85,"props":3561,"children":3562},{"style":102},[3563],{"type":63,"value":127},{"type":57,"tag":85,"props":3565,"children":3566},{"style":108},[3567],{"type":63,"value":132},{"type":57,"tag":85,"props":3569,"children":3570},{"style":135},[3571],{"type":63,"value":138},{"type":57,"tag":85,"props":3573,"children":3574},{"style":108},[3575],{"type":63,"value":143},{"type":57,"tag":85,"props":3577,"children":3578},{"style":108},[3579],{"type":63,"value":148},{"type":57,"tag":85,"props":3581,"children":3582},{"class":87,"line":151},[3583,3587,3591,3595,3599,3603,3607,3611,3615],{"type":57,"tag":85,"props":3584,"children":3585},{"style":102},[3586],{"type":63,"value":105},{"type":57,"tag":85,"props":3588,"children":3589},{"style":108},[3590],{"type":63,"value":111},{"type":57,"tag":85,"props":3592,"children":3593},{"style":114},[3594],{"type":63,"value":371},{"type":57,"tag":85,"props":3596,"children":3597},{"style":108},[3598],{"type":63,"value":122},{"type":57,"tag":85,"props":3600,"children":3601},{"style":102},[3602],{"type":63,"value":127},{"type":57,"tag":85,"props":3604,"children":3605},{"style":108},[3606],{"type":63,"value":132},{"type":57,"tag":85,"props":3608,"children":3609},{"style":135},[3610],{"type":63,"value":2779},{"type":57,"tag":85,"props":3612,"children":3613},{"style":108},[3614],{"type":63,"value":143},{"type":57,"tag":85,"props":3616,"children":3617},{"style":108},[3618],{"type":63,"value":148},{"type":57,"tag":85,"props":3620,"children":3621},{"class":87,"line":161},[3622],{"type":57,"tag":85,"props":3623,"children":3624},{"emptyLinePlaceholder":155},[3625],{"type":63,"value":158},{"type":57,"tag":85,"props":3627,"children":3628},{"class":87,"line":205},[3629,3633,3637,3641,3645,3649,3653],{"type":57,"tag":85,"props":3630,"children":3631},{"style":102},[3632],{"type":63,"value":219},{"type":57,"tag":85,"props":3634,"children":3635},{"style":165},[3636],{"type":63,"value":224},{"type":57,"tag":85,"props":3638,"children":3639},{"style":114},[3640],{"type":63,"value":488},{"type":57,"tag":85,"props":3642,"children":3643},{"style":108},[3644],{"type":63,"value":178},{"type":57,"tag":85,"props":3646,"children":3647},{"style":190},[3648],{"type":63,"value":371},{"type":57,"tag":85,"props":3650,"children":3651},{"style":114},[3652],{"type":63,"value":501},{"type":57,"tag":85,"props":3654,"children":3655},{"style":108},[3656],{"type":63,"value":506},{"type":57,"tag":85,"props":3658,"children":3659},{"class":87,"line":213},[3660],{"type":57,"tag":85,"props":3661,"children":3662},{"style":92},[3663],{"type":63,"value":3664},"  \u002F\u002F Short-hand when the module has exactly one router exported\n",{"type":57,"tag":85,"props":3666,"children":3667},{"class":87,"line":254},[3668,3673,3677,3681,3685,3689,3693,3698,3702,3706,3711,3715,3719],{"type":57,"tag":85,"props":3669,"children":3670},{"style":429},[3671],{"type":63,"value":3672},"  greeting",{"type":57,"tag":85,"props":3674,"children":3675},{"style":108},[3676],{"type":63,"value":437},{"type":57,"tag":85,"props":3678,"children":3679},{"style":190},[3680],{"type":63,"value":3555},{"type":57,"tag":85,"props":3682,"children":3683},{"style":114},[3684],{"type":63,"value":501},{"type":57,"tag":85,"props":3686,"children":3687},{"style":108},[3688],{"type":63,"value":198},{"type":57,"tag":85,"props":3690,"children":3691},{"style":165},[3692],{"type":63,"value":576},{"type":57,"tag":85,"props":3694,"children":3695},{"style":108},[3696],{"type":63,"value":3697}," import",{"type":57,"tag":85,"props":3699,"children":3700},{"style":114},[3701],{"type":63,"value":501},{"type":57,"tag":85,"props":3703,"children":3704},{"style":108},[3705],{"type":63,"value":143},{"type":57,"tag":85,"props":3707,"children":3708},{"style":135},[3709],{"type":63,"value":3710},".\u002Fgreeting.js",{"type":57,"tag":85,"props":3712,"children":3713},{"style":108},[3714],{"type":63,"value":143},{"type":57,"tag":85,"props":3716,"children":3717},{"style":114},[3718],{"type":63,"value":3190},{"type":57,"tag":85,"props":3720,"children":3721},{"style":108},[3722],{"type":63,"value":678},{"type":57,"tag":85,"props":3724,"children":3725},{"class":87,"line":509},[3726],{"type":57,"tag":85,"props":3727,"children":3728},{"style":92},[3729],{"type":63,"value":3730},"  \u002F\u002F Use .then() to pick a named export when the module exports multiple routers\n",{"type":57,"tag":85,"props":3732,"children":3733},{"class":87,"line":584},[3734,3738,3742,3746,3750,3754,3758,3762,3766,3770,3775,3779,3783,3787,3792,3796,3800,3805,3809,3813,3818,3822,3827],{"type":57,"tag":85,"props":3735,"children":3736},{"style":429},[3737],{"type":63,"value":3434},{"type":57,"tag":85,"props":3739,"children":3740},{"style":108},[3741],{"type":63,"value":437},{"type":57,"tag":85,"props":3743,"children":3744},{"style":190},[3745],{"type":63,"value":3555},{"type":57,"tag":85,"props":3747,"children":3748},{"style":114},[3749],{"type":63,"value":501},{"type":57,"tag":85,"props":3751,"children":3752},{"style":108},[3753],{"type":63,"value":198},{"type":57,"tag":85,"props":3755,"children":3756},{"style":165},[3757],{"type":63,"value":576},{"type":57,"tag":85,"props":3759,"children":3760},{"style":108},[3761],{"type":63,"value":3697},{"type":57,"tag":85,"props":3763,"children":3764},{"style":114},[3765],{"type":63,"value":501},{"type":57,"tag":85,"props":3767,"children":3768},{"style":108},[3769],{"type":63,"value":143},{"type":57,"tag":85,"props":3771,"children":3772},{"style":135},[3773],{"type":63,"value":3774},".\u002Fuser.js",{"type":57,"tag":85,"props":3776,"children":3777},{"style":108},[3778],{"type":63,"value":143},{"type":57,"tag":85,"props":3780,"children":3781},{"style":114},[3782],{"type":63,"value":673},{"type":57,"tag":85,"props":3784,"children":3785},{"style":108},[3786],{"type":63,"value":187},{"type":57,"tag":85,"props":3788,"children":3789},{"style":190},[3790],{"type":63,"value":3791},"then",{"type":57,"tag":85,"props":3793,"children":3794},{"style":114},[3795],{"type":63,"value":501},{"type":57,"tag":85,"props":3797,"children":3798},{"style":108},[3799],{"type":63,"value":501},{"type":57,"tag":85,"props":3801,"children":3802},{"style":757},[3803],{"type":63,"value":3804},"m",{"type":57,"tag":85,"props":3806,"children":3807},{"style":108},[3808],{"type":63,"value":673},{"type":57,"tag":85,"props":3810,"children":3811},{"style":165},[3812],{"type":63,"value":576},{"type":57,"tag":85,"props":3814,"children":3815},{"style":114},[3816],{"type":63,"value":3817}," m",{"type":57,"tag":85,"props":3819,"children":3820},{"style":108},[3821],{"type":63,"value":187},{"type":57,"tag":85,"props":3823,"children":3824},{"style":114},[3825],{"type":63,"value":3826},"userRouter))",{"type":57,"tag":85,"props":3828,"children":3829},{"style":108},[3830],{"type":63,"value":678},{"type":57,"tag":85,"props":3832,"children":3833},{"class":87,"line":662},[3834,3838,3842],{"type":57,"tag":85,"props":3835,"children":3836},{"style":108},[3837],{"type":63,"value":939},{"type":57,"tag":85,"props":3839,"children":3840},{"style":114},[3841],{"type":63,"value":673},{"type":57,"tag":85,"props":3843,"children":3844},{"style":108},[3845],{"type":63,"value":148},{"type":57,"tag":85,"props":3847,"children":3848},{"class":87,"line":681},[3849],{"type":57,"tag":85,"props":3850,"children":3851},{"emptyLinePlaceholder":155},[3852],{"type":63,"value":158},{"type":57,"tag":85,"props":3854,"children":3855},{"class":87,"line":699},[3856,3860,3864,3868,3872,3876,3880],{"type":57,"tag":85,"props":3857,"children":3858},{"style":102},[3859],{"type":63,"value":219},{"type":57,"tag":85,"props":3861,"children":3862},{"style":165},[3863],{"type":63,"value":1103},{"type":57,"tag":85,"props":3865,"children":3866},{"style":414},[3867],{"type":63,"value":1108},{"type":57,"tag":85,"props":3869,"children":3870},{"style":108},[3871],{"type":63,"value":422},{"type":57,"tag":85,"props":3873,"children":3874},{"style":108},[3875],{"type":63,"value":1117},{"type":57,"tag":85,"props":3877,"children":3878},{"style":114},[3879],{"type":63,"value":1122},{"type":57,"tag":85,"props":3881,"children":3882},{"style":108},[3883],{"type":63,"value":148},{"type":57,"tag":66,"props":3885,"children":3887},{"id":3886},"common-mistakes",[3888],{"type":63,"value":3889},"Common Mistakes",{"type":57,"tag":1324,"props":3891,"children":3893},{"id":3892},"critical-calling-inittrpccreate-more-than-once",[3894,3899],{"type":57,"tag":85,"props":3895,"children":3896},{},[3897],{"type":63,"value":3898},"CRITICAL",{"type":63,"value":3900}," Calling initTRPC.create() more than once",{"type":57,"tag":2699,"props":3902,"children":3903},{},[3904],{"type":63,"value":3905},"Wrong:",{"type":57,"tag":73,"props":3907,"children":3909},{"className":75,"code":3908,"language":77,"meta":78,"style":78},"\u002F\u002F file: userRouter.ts\nimport { initTRPC } from '@trpc\u002Fserver';\nconst t = initTRPC.create();\nexport const userRouter = t.router({});\n\n\u002F\u002F file: postRouter.ts\nimport { initTRPC } from '@trpc\u002Fserver';\nconst t2 = initTRPC.create();\nexport const postRouter = t2.router({});\n",[3910],{"type":57,"tag":81,"props":3911,"children":3912},{"__ignoreMap":78},[3913,3921,3960,3995,4043,4050,4058,4097,4133],{"type":57,"tag":85,"props":3914,"children":3915},{"class":87,"line":88},[3916],{"type":57,"tag":85,"props":3917,"children":3918},{"style":92},[3919],{"type":63,"value":3920},"\u002F\u002F file: userRouter.ts\n",{"type":57,"tag":85,"props":3922,"children":3923},{"class":87,"line":98},[3924,3928,3932,3936,3940,3944,3948,3952,3956],{"type":57,"tag":85,"props":3925,"children":3926},{"style":102},[3927],{"type":63,"value":105},{"type":57,"tag":85,"props":3929,"children":3930},{"style":108},[3931],{"type":63,"value":111},{"type":57,"tag":85,"props":3933,"children":3934},{"style":114},[3935],{"type":63,"value":117},{"type":57,"tag":85,"props":3937,"children":3938},{"style":108},[3939],{"type":63,"value":122},{"type":57,"tag":85,"props":3941,"children":3942},{"style":102},[3943],{"type":63,"value":127},{"type":57,"tag":85,"props":3945,"children":3946},{"style":108},[3947],{"type":63,"value":132},{"type":57,"tag":85,"props":3949,"children":3950},{"style":135},[3951],{"type":63,"value":138},{"type":57,"tag":85,"props":3953,"children":3954},{"style":108},[3955],{"type":63,"value":143},{"type":57,"tag":85,"props":3957,"children":3958},{"style":108},[3959],{"type":63,"value":148},{"type":57,"tag":85,"props":3961,"children":3962},{"class":87,"line":151},[3963,3967,3971,3975,3979,3983,3987,3991],{"type":57,"tag":85,"props":3964,"children":3965},{"style":165},[3966],{"type":63,"value":168},{"type":57,"tag":85,"props":3968,"children":3969},{"style":114},[3970],{"type":63,"value":173},{"type":57,"tag":85,"props":3972,"children":3973},{"style":108},[3974],{"type":63,"value":178},{"type":57,"tag":85,"props":3976,"children":3977},{"style":114},[3978],{"type":63,"value":117},{"type":57,"tag":85,"props":3980,"children":3981},{"style":108},[3982],{"type":63,"value":187},{"type":57,"tag":85,"props":3984,"children":3985},{"style":190},[3986],{"type":63,"value":193},{"type":57,"tag":85,"props":3988,"children":3989},{"style":114},[3990],{"type":63,"value":198},{"type":57,"tag":85,"props":3992,"children":3993},{"style":108},[3994],{"type":63,"value":148},{"type":57,"tag":85,"props":3996,"children":3997},{"class":87,"line":161},[3998,4002,4006,4010,4014,4018,4022,4026,4030,4035,4039],{"type":57,"tag":85,"props":3999,"children":4000},{"style":102},[4001],{"type":63,"value":219},{"type":57,"tag":85,"props":4003,"children":4004},{"style":165},[4005],{"type":63,"value":224},{"type":57,"tag":85,"props":4007,"children":4008},{"style":114},[4009],{"type":63,"value":2810},{"type":57,"tag":85,"props":4011,"children":4012},{"style":108},[4013],{"type":63,"value":178},{"type":57,"tag":85,"props":4015,"children":4016},{"style":114},[4017],{"type":63,"value":238},{"type":57,"tag":85,"props":4019,"children":4020},{"style":108},[4021],{"type":63,"value":187},{"type":57,"tag":85,"props":4023,"children":4024},{"style":190},[4025],{"type":63,"value":247},{"type":57,"tag":85,"props":4027,"children":4028},{"style":114},[4029],{"type":63,"value":501},{"type":57,"tag":85,"props":4031,"children":4032},{"style":108},[4033],{"type":63,"value":4034},"{}",{"type":57,"tag":85,"props":4036,"children":4037},{"style":114},[4038],{"type":63,"value":673},{"type":57,"tag":85,"props":4040,"children":4041},{"style":108},[4042],{"type":63,"value":148},{"type":57,"tag":85,"props":4044,"children":4045},{"class":87,"line":205},[4046],{"type":57,"tag":85,"props":4047,"children":4048},{"emptyLinePlaceholder":155},[4049],{"type":63,"value":158},{"type":57,"tag":85,"props":4051,"children":4052},{"class":87,"line":213},[4053],{"type":57,"tag":85,"props":4054,"children":4055},{"style":92},[4056],{"type":63,"value":4057},"\u002F\u002F file: postRouter.ts\n",{"type":57,"tag":85,"props":4059,"children":4060},{"class":87,"line":254},[4061,4065,4069,4073,4077,4081,4085,4089,4093],{"type":57,"tag":85,"props":4062,"children":4063},{"style":102},[4064],{"type":63,"value":105},{"type":57,"tag":85,"props":4066,"children":4067},{"style":108},[4068],{"type":63,"value":111},{"type":57,"tag":85,"props":4070,"children":4071},{"style":114},[4072],{"type":63,"value":117},{"type":57,"tag":85,"props":4074,"children":4075},{"style":108},[4076],{"type":63,"value":122},{"type":57,"tag":85,"props":4078,"children":4079},{"style":102},[4080],{"type":63,"value":127},{"type":57,"tag":85,"props":4082,"children":4083},{"style":108},[4084],{"type":63,"value":132},{"type":57,"tag":85,"props":4086,"children":4087},{"style":135},[4088],{"type":63,"value":138},{"type":57,"tag":85,"props":4090,"children":4091},{"style":108},[4092],{"type":63,"value":143},{"type":57,"tag":85,"props":4094,"children":4095},{"style":108},[4096],{"type":63,"value":148},{"type":57,"tag":85,"props":4098,"children":4099},{"class":87,"line":509},[4100,4104,4109,4113,4117,4121,4125,4129],{"type":57,"tag":85,"props":4101,"children":4102},{"style":165},[4103],{"type":63,"value":168},{"type":57,"tag":85,"props":4105,"children":4106},{"style":114},[4107],{"type":63,"value":4108}," t2 ",{"type":57,"tag":85,"props":4110,"children":4111},{"style":108},[4112],{"type":63,"value":178},{"type":57,"tag":85,"props":4114,"children":4115},{"style":114},[4116],{"type":63,"value":117},{"type":57,"tag":85,"props":4118,"children":4119},{"style":108},[4120],{"type":63,"value":187},{"type":57,"tag":85,"props":4122,"children":4123},{"style":190},[4124],{"type":63,"value":193},{"type":57,"tag":85,"props":4126,"children":4127},{"style":114},[4128],{"type":63,"value":198},{"type":57,"tag":85,"props":4130,"children":4131},{"style":108},[4132],{"type":63,"value":148},{"type":57,"tag":85,"props":4134,"children":4135},{"class":87,"line":584},[4136,4140,4144,4148,4152,4157,4161,4165,4169,4173,4177],{"type":57,"tag":85,"props":4137,"children":4138},{"style":102},[4139],{"type":63,"value":219},{"type":57,"tag":85,"props":4141,"children":4142},{"style":165},[4143],{"type":63,"value":224},{"type":57,"tag":85,"props":4145,"children":4146},{"style":114},[4147],{"type":63,"value":3010},{"type":57,"tag":85,"props":4149,"children":4150},{"style":108},[4151],{"type":63,"value":178},{"type":57,"tag":85,"props":4153,"children":4154},{"style":114},[4155],{"type":63,"value":4156}," t2",{"type":57,"tag":85,"props":4158,"children":4159},{"style":108},[4160],{"type":63,"value":187},{"type":57,"tag":85,"props":4162,"children":4163},{"style":190},[4164],{"type":63,"value":247},{"type":57,"tag":85,"props":4166,"children":4167},{"style":114},[4168],{"type":63,"value":501},{"type":57,"tag":85,"props":4170,"children":4171},{"style":108},[4172],{"type":63,"value":4034},{"type":57,"tag":85,"props":4174,"children":4175},{"style":114},[4176],{"type":63,"value":673},{"type":57,"tag":85,"props":4178,"children":4179},{"style":108},[4180],{"type":63,"value":148},{"type":57,"tag":2699,"props":4182,"children":4183},{},[4184],{"type":63,"value":4185},"Correct:",{"type":57,"tag":73,"props":4187,"children":4189},{"className":75,"code":4188,"language":77,"meta":78,"style":78},"\u002F\u002F file: trpc.ts (single file, created once)\nimport { initTRPC } from '@trpc\u002Fserver';\nimport type { Context } from '.\u002Fcontext';\n\nconst t = initTRPC.context\u003CContext>().create();\n\nexport const router = t.router;\nexport const publicProcedure = t.procedure;\n",[4190],{"type":57,"tag":81,"props":4191,"children":4192},{"__ignoreMap":78},[4193,4201,4240,4283,4290,4349,4356,4391],{"type":57,"tag":85,"props":4194,"children":4195},{"class":87,"line":88},[4196],{"type":57,"tag":85,"props":4197,"children":4198},{"style":92},[4199],{"type":63,"value":4200},"\u002F\u002F file: trpc.ts (single file, created once)\n",{"type":57,"tag":85,"props":4202,"children":4203},{"class":87,"line":98},[4204,4208,4212,4216,4220,4224,4228,4232,4236],{"type":57,"tag":85,"props":4205,"children":4206},{"style":102},[4207],{"type":63,"value":105},{"type":57,"tag":85,"props":4209,"children":4210},{"style":108},[4211],{"type":63,"value":111},{"type":57,"tag":85,"props":4213,"children":4214},{"style":114},[4215],{"type":63,"value":117},{"type":57,"tag":85,"props":4217,"children":4218},{"style":108},[4219],{"type":63,"value":122},{"type":57,"tag":85,"props":4221,"children":4222},{"style":102},[4223],{"type":63,"value":127},{"type":57,"tag":85,"props":4225,"children":4226},{"style":108},[4227],{"type":63,"value":132},{"type":57,"tag":85,"props":4229,"children":4230},{"style":135},[4231],{"type":63,"value":138},{"type":57,"tag":85,"props":4233,"children":4234},{"style":108},[4235],{"type":63,"value":143},{"type":57,"tag":85,"props":4237,"children":4238},{"style":108},[4239],{"type":63,"value":148},{"type":57,"tag":85,"props":4241,"children":4242},{"class":87,"line":151},[4243,4247,4251,4255,4259,4263,4267,4271,4275,4279],{"type":57,"tag":85,"props":4244,"children":4245},{"style":102},[4246],{"type":63,"value":105},{"type":57,"tag":85,"props":4248,"children":4249},{"style":102},[4250],{"type":63,"value":1103},{"type":57,"tag":85,"props":4252,"children":4253},{"style":108},[4254],{"type":63,"value":111},{"type":57,"tag":85,"props":4256,"children":4257},{"style":114},[4258],{"type":63,"value":1559},{"type":57,"tag":85,"props":4260,"children":4261},{"style":108},[4262],{"type":63,"value":122},{"type":57,"tag":85,"props":4264,"children":4265},{"style":102},[4266],{"type":63,"value":127},{"type":57,"tag":85,"props":4268,"children":4269},{"style":108},[4270],{"type":63,"value":132},{"type":57,"tag":85,"props":4272,"children":4273},{"style":135},[4274],{"type":63,"value":1680},{"type":57,"tag":85,"props":4276,"children":4277},{"style":108},[4278],{"type":63,"value":143},{"type":57,"tag":85,"props":4280,"children":4281},{"style":108},[4282],{"type":63,"value":148},{"type":57,"tag":85,"props":4284,"children":4285},{"class":87,"line":161},[4286],{"type":57,"tag":85,"props":4287,"children":4288},{"emptyLinePlaceholder":155},[4289],{"type":63,"value":158},{"type":57,"tag":85,"props":4291,"children":4292},{"class":87,"line":205},[4293,4297,4301,4305,4309,4313,4317,4321,4325,4329,4333,4337,4341,4345],{"type":57,"tag":85,"props":4294,"children":4295},{"style":165},[4296],{"type":63,"value":168},{"type":57,"tag":85,"props":4298,"children":4299},{"style":114},[4300],{"type":63,"value":173},{"type":57,"tag":85,"props":4302,"children":4303},{"style":108},[4304],{"type":63,"value":178},{"type":57,"tag":85,"props":4306,"children":4307},{"style":114},[4308],{"type":63,"value":117},{"type":57,"tag":85,"props":4310,"children":4311},{"style":108},[4312],{"type":63,"value":187},{"type":57,"tag":85,"props":4314,"children":4315},{"style":190},[4316],{"type":63,"value":1723},{"type":57,"tag":85,"props":4318,"children":4319},{"style":108},[4320],{"type":63,"value":556},{"type":57,"tag":85,"props":4322,"children":4323},{"style":414},[4324],{"type":63,"value":1732},{"type":57,"tag":85,"props":4326,"children":4327},{"style":108},[4328],{"type":63,"value":571},{"type":57,"tag":85,"props":4330,"children":4331},{"style":114},[4332],{"type":63,"value":198},{"type":57,"tag":85,"props":4334,"children":4335},{"style":108},[4336],{"type":63,"value":187},{"type":57,"tag":85,"props":4338,"children":4339},{"style":190},[4340],{"type":63,"value":193},{"type":57,"tag":85,"props":4342,"children":4343},{"style":114},[4344],{"type":63,"value":198},{"type":57,"tag":85,"props":4346,"children":4347},{"style":108},[4348],{"type":63,"value":148},{"type":57,"tag":85,"props":4350,"children":4351},{"class":87,"line":213},[4352],{"type":57,"tag":85,"props":4353,"children":4354},{"emptyLinePlaceholder":155},[4355],{"type":63,"value":158},{"type":57,"tag":85,"props":4357,"children":4358},{"class":87,"line":254},[4359,4363,4367,4371,4375,4379,4383,4387],{"type":57,"tag":85,"props":4360,"children":4361},{"style":102},[4362],{"type":63,"value":219},{"type":57,"tag":85,"props":4364,"children":4365},{"style":165},[4366],{"type":63,"value":224},{"type":57,"tag":85,"props":4368,"children":4369},{"style":114},[4370],{"type":63,"value":229},{"type":57,"tag":85,"props":4372,"children":4373},{"style":108},[4374],{"type":63,"value":178},{"type":57,"tag":85,"props":4376,"children":4377},{"style":114},[4378],{"type":63,"value":238},{"type":57,"tag":85,"props":4380,"children":4381},{"style":108},[4382],{"type":63,"value":187},{"type":57,"tag":85,"props":4384,"children":4385},{"style":114},[4386],{"type":63,"value":247},{"type":57,"tag":85,"props":4388,"children":4389},{"style":108},[4390],{"type":63,"value":148},{"type":57,"tag":85,"props":4392,"children":4393},{"class":87,"line":509},[4394,4398,4402,4406,4410,4414,4418,4422],{"type":57,"tag":85,"props":4395,"children":4396},{"style":102},[4397],{"type":63,"value":219},{"type":57,"tag":85,"props":4399,"children":4400},{"style":165},[4401],{"type":63,"value":224},{"type":57,"tag":85,"props":4403,"children":4404},{"style":114},[4405],{"type":63,"value":268},{"type":57,"tag":85,"props":4407,"children":4408},{"style":108},[4409],{"type":63,"value":178},{"type":57,"tag":85,"props":4411,"children":4412},{"style":114},[4413],{"type":63,"value":238},{"type":57,"tag":85,"props":4415,"children":4416},{"style":108},[4417],{"type":63,"value":187},{"type":57,"tag":85,"props":4419,"children":4420},{"style":114},[4421],{"type":63,"value":285},{"type":57,"tag":85,"props":4423,"children":4424},{"style":108},[4425],{"type":63,"value":148},{"type":57,"tag":2699,"props":4427,"children":4428},{},[4429],{"type":63,"value":4430},"Multiple tRPC instances cause type mismatches and runtime errors when routers from different instances are merged.",{"type":57,"tag":2699,"props":4432,"children":4433},{},[4434],{"type":63,"value":4435},"Source: www\u002Fdocs\u002Fserver\u002Frouters.md",{"type":57,"tag":1324,"props":4437,"children":4439},{"id":4438},"high-using-reserved-words-as-procedure-names",[4440,4445],{"type":57,"tag":85,"props":4441,"children":4442},{},[4443],{"type":63,"value":4444},"HIGH",{"type":63,"value":4446}," Using reserved words as procedure names",{"type":57,"tag":2699,"props":4448,"children":4449},{},[4450],{"type":63,"value":3905},{"type":57,"tag":73,"props":4452,"children":4454},{"className":75,"code":4453,"language":77,"meta":78,"style":78},"import { publicProcedure, router } from '.\u002Ftrpc';\n\nconst appRouter = router({\n  then: publicProcedure.query(() => 'hello'),\n});\n",[4455],{"type":57,"tag":81,"props":4456,"children":4457},{"__ignoreMap":78},[4458,4505,4512,4539,4596],{"type":57,"tag":85,"props":4459,"children":4460},{"class":87,"line":88},[4461,4465,4469,4473,4477,4481,4485,4489,4493,4497,4501],{"type":57,"tag":85,"props":4462,"children":4463},{"style":102},[4464],{"type":63,"value":105},{"type":57,"tag":85,"props":4466,"children":4467},{"style":108},[4468],{"type":63,"value":111},{"type":57,"tag":85,"props":4470,"children":4471},{"style":114},[4472],{"type":63,"value":361},{"type":57,"tag":85,"props":4474,"children":4475},{"style":108},[4476],{"type":63,"value":366},{"type":57,"tag":85,"props":4478,"children":4479},{"style":114},[4480],{"type":63,"value":371},{"type":57,"tag":85,"props":4482,"children":4483},{"style":108},[4484],{"type":63,"value":122},{"type":57,"tag":85,"props":4486,"children":4487},{"style":102},[4488],{"type":63,"value":127},{"type":57,"tag":85,"props":4490,"children":4491},{"style":108},[4492],{"type":63,"value":132},{"type":57,"tag":85,"props":4494,"children":4495},{"style":135},[4496],{"type":63,"value":388},{"type":57,"tag":85,"props":4498,"children":4499},{"style":108},[4500],{"type":63,"value":143},{"type":57,"tag":85,"props":4502,"children":4503},{"style":108},[4504],{"type":63,"value":148},{"type":57,"tag":85,"props":4506,"children":4507},{"class":87,"line":98},[4508],{"type":57,"tag":85,"props":4509,"children":4510},{"emptyLinePlaceholder":155},[4511],{"type":63,"value":158},{"type":57,"tag":85,"props":4513,"children":4514},{"class":87,"line":151},[4515,4519,4523,4527,4531,4535],{"type":57,"tag":85,"props":4516,"children":4517},{"style":165},[4518],{"type":63,"value":168},{"type":57,"tag":85,"props":4520,"children":4521},{"style":114},[4522],{"type":63,"value":488},{"type":57,"tag":85,"props":4524,"children":4525},{"style":108},[4526],{"type":63,"value":178},{"type":57,"tag":85,"props":4528,"children":4529},{"style":190},[4530],{"type":63,"value":371},{"type":57,"tag":85,"props":4532,"children":4533},{"style":114},[4534],{"type":63,"value":501},{"type":57,"tag":85,"props":4536,"children":4537},{"style":108},[4538],{"type":63,"value":506},{"type":57,"tag":85,"props":4540,"children":4541},{"class":87,"line":161},[4542,4547,4551,4555,4559,4563,4567,4571,4575,4579,4584,4588,4592],{"type":57,"tag":85,"props":4543,"children":4544},{"style":429},[4545],{"type":63,"value":4546},"  then",{"type":57,"tag":85,"props":4548,"children":4549},{"style":108},[4550],{"type":63,"value":437},{"type":57,"tag":85,"props":4552,"children":4553},{"style":114},[4554],{"type":63,"value":361},{"type":57,"tag":85,"props":4556,"children":4557},{"style":108},[4558],{"type":63,"value":187},{"type":57,"tag":85,"props":4560,"children":4561},{"style":190},[4562],{"type":63,"value":532},{"type":57,"tag":85,"props":4564,"children":4565},{"style":114},[4566],{"type":63,"value":501},{"type":57,"tag":85,"props":4568,"children":4569},{"style":108},[4570],{"type":63,"value":198},{"type":57,"tag":85,"props":4572,"children":4573},{"style":165},[4574],{"type":63,"value":576},{"type":57,"tag":85,"props":4576,"children":4577},{"style":108},[4578],{"type":63,"value":132},{"type":57,"tag":85,"props":4580,"children":4581},{"style":135},[4582],{"type":63,"value":4583},"hello",{"type":57,"tag":85,"props":4585,"children":4586},{"style":108},[4587],{"type":63,"value":143},{"type":57,"tag":85,"props":4589,"children":4590},{"style":114},[4591],{"type":63,"value":673},{"type":57,"tag":85,"props":4593,"children":4594},{"style":108},[4595],{"type":63,"value":678},{"type":57,"tag":85,"props":4597,"children":4598},{"class":87,"line":205},[4599,4603,4607],{"type":57,"tag":85,"props":4600,"children":4601},{"style":108},[4602],{"type":63,"value":939},{"type":57,"tag":85,"props":4604,"children":4605},{"style":114},[4606],{"type":63,"value":673},{"type":57,"tag":85,"props":4608,"children":4609},{"style":108},[4610],{"type":63,"value":148},{"type":57,"tag":2699,"props":4612,"children":4613},{},[4614],{"type":63,"value":4185},{"type":57,"tag":73,"props":4616,"children":4618},{"className":75,"code":4617,"language":77,"meta":78,"style":78},"import { publicProcedure, router } from '.\u002Ftrpc';\n\nconst appRouter = router({\n  next: publicProcedure.query(() => 'hello'),\n});\n",[4619],{"type":57,"tag":81,"props":4620,"children":4621},{"__ignoreMap":78},[4622,4669,4676,4703,4759],{"type":57,"tag":85,"props":4623,"children":4624},{"class":87,"line":88},[4625,4629,4633,4637,4641,4645,4649,4653,4657,4661,4665],{"type":57,"tag":85,"props":4626,"children":4627},{"style":102},[4628],{"type":63,"value":105},{"type":57,"tag":85,"props":4630,"children":4631},{"style":108},[4632],{"type":63,"value":111},{"type":57,"tag":85,"props":4634,"children":4635},{"style":114},[4636],{"type":63,"value":361},{"type":57,"tag":85,"props":4638,"children":4639},{"style":108},[4640],{"type":63,"value":366},{"type":57,"tag":85,"props":4642,"children":4643},{"style":114},[4644],{"type":63,"value":371},{"type":57,"tag":85,"props":4646,"children":4647},{"style":108},[4648],{"type":63,"value":122},{"type":57,"tag":85,"props":4650,"children":4651},{"style":102},[4652],{"type":63,"value":127},{"type":57,"tag":85,"props":4654,"children":4655},{"style":108},[4656],{"type":63,"value":132},{"type":57,"tag":85,"props":4658,"children":4659},{"style":135},[4660],{"type":63,"value":388},{"type":57,"tag":85,"props":4662,"children":4663},{"style":108},[4664],{"type":63,"value":143},{"type":57,"tag":85,"props":4666,"children":4667},{"style":108},[4668],{"type":63,"value":148},{"type":57,"tag":85,"props":4670,"children":4671},{"class":87,"line":98},[4672],{"type":57,"tag":85,"props":4673,"children":4674},{"emptyLinePlaceholder":155},[4675],{"type":63,"value":158},{"type":57,"tag":85,"props":4677,"children":4678},{"class":87,"line":151},[4679,4683,4687,4691,4695,4699],{"type":57,"tag":85,"props":4680,"children":4681},{"style":165},[4682],{"type":63,"value":168},{"type":57,"tag":85,"props":4684,"children":4685},{"style":114},[4686],{"type":63,"value":488},{"type":57,"tag":85,"props":4688,"children":4689},{"style":108},[4690],{"type":63,"value":178},{"type":57,"tag":85,"props":4692,"children":4693},{"style":190},[4694],{"type":63,"value":371},{"type":57,"tag":85,"props":4696,"children":4697},{"style":114},[4698],{"type":63,"value":501},{"type":57,"tag":85,"props":4700,"children":4701},{"style":108},[4702],{"type":63,"value":506},{"type":57,"tag":85,"props":4704,"children":4705},{"class":87,"line":161},[4706,4711,4715,4719,4723,4727,4731,4735,4739,4743,4747,4751,4755],{"type":57,"tag":85,"props":4707,"children":4708},{"style":429},[4709],{"type":63,"value":4710},"  next",{"type":57,"tag":85,"props":4712,"children":4713},{"style":108},[4714],{"type":63,"value":437},{"type":57,"tag":85,"props":4716,"children":4717},{"style":114},[4718],{"type":63,"value":361},{"type":57,"tag":85,"props":4720,"children":4721},{"style":108},[4722],{"type":63,"value":187},{"type":57,"tag":85,"props":4724,"children":4725},{"style":190},[4726],{"type":63,"value":532},{"type":57,"tag":85,"props":4728,"children":4729},{"style":114},[4730],{"type":63,"value":501},{"type":57,"tag":85,"props":4732,"children":4733},{"style":108},[4734],{"type":63,"value":198},{"type":57,"tag":85,"props":4736,"children":4737},{"style":165},[4738],{"type":63,"value":576},{"type":57,"tag":85,"props":4740,"children":4741},{"style":108},[4742],{"type":63,"value":132},{"type":57,"tag":85,"props":4744,"children":4745},{"style":135},[4746],{"type":63,"value":4583},{"type":57,"tag":85,"props":4748,"children":4749},{"style":108},[4750],{"type":63,"value":143},{"type":57,"tag":85,"props":4752,"children":4753},{"style":114},[4754],{"type":63,"value":673},{"type":57,"tag":85,"props":4756,"children":4757},{"style":108},[4758],{"type":63,"value":678},{"type":57,"tag":85,"props":4760,"children":4761},{"class":87,"line":205},[4762,4766,4770],{"type":57,"tag":85,"props":4763,"children":4764},{"style":108},[4765],{"type":63,"value":939},{"type":57,"tag":85,"props":4767,"children":4768},{"style":114},[4769],{"type":63,"value":673},{"type":57,"tag":85,"props":4771,"children":4772},{"style":108},[4773],{"type":63,"value":148},{"type":57,"tag":2699,"props":4775,"children":4776},{},[4777],{"type":63,"value":4778},"Router creation throws if procedure names are \"then\", \"call\", or \"apply\" because these conflict with JavaScript Proxy internals.",{"type":57,"tag":2699,"props":4780,"children":4781},{},[4782],{"type":63,"value":4783},"Source: packages\u002Fserver\u002Fsrc\u002Funstable-core-do-not-import\u002Frouter.ts",{"type":57,"tag":1324,"props":4785,"children":4787},{"id":4786},"critical-importing-approuter-as-a-value-import",[4788,4792],{"type":57,"tag":85,"props":4789,"children":4790},{},[4791],{"type":63,"value":3898},{"type":63,"value":4793}," Importing AppRouter as a value import",{"type":57,"tag":2699,"props":4795,"children":4796},{},[4797],{"type":63,"value":3905},{"type":57,"tag":73,"props":4799,"children":4801},{"className":75,"code":4800,"language":77,"meta":78,"style":78},"\u002F\u002F client.ts\nimport { AppRouter } from '..\u002Fserver\u002Frouter';\n",[4802],{"type":57,"tag":81,"props":4803,"children":4804},{"__ignoreMap":78},[4805,4813],{"type":57,"tag":85,"props":4806,"children":4807},{"class":87,"line":88},[4808],{"type":57,"tag":85,"props":4809,"children":4810},{"style":92},[4811],{"type":63,"value":4812},"\u002F\u002F client.ts\n",{"type":57,"tag":85,"props":4814,"children":4815},{"class":87,"line":98},[4816,4820,4824,4828,4832,4836,4840,4845,4849],{"type":57,"tag":85,"props":4817,"children":4818},{"style":102},[4819],{"type":63,"value":105},{"type":57,"tag":85,"props":4821,"children":4822},{"style":108},[4823],{"type":63,"value":111},{"type":57,"tag":85,"props":4825,"children":4826},{"style":114},[4827],{"type":63,"value":1108},{"type":57,"tag":85,"props":4829,"children":4830},{"style":108},[4831],{"type":63,"value":122},{"type":57,"tag":85,"props":4833,"children":4834},{"style":102},[4835],{"type":63,"value":127},{"type":57,"tag":85,"props":4837,"children":4838},{"style":108},[4839],{"type":63,"value":132},{"type":57,"tag":85,"props":4841,"children":4842},{"style":135},[4843],{"type":63,"value":4844},"..\u002Fserver\u002Frouter",{"type":57,"tag":85,"props":4846,"children":4847},{"style":108},[4848],{"type":63,"value":143},{"type":57,"tag":85,"props":4850,"children":4851},{"style":108},[4852],{"type":63,"value":148},{"type":57,"tag":2699,"props":4854,"children":4855},{},[4856],{"type":63,"value":4185},{"type":57,"tag":73,"props":4858,"children":4860},{"className":75,"code":4859,"language":77,"meta":78,"style":78},"\u002F\u002F client.ts\nimport type { AppRouter } from '..\u002Fserver\u002Frouter';\n",[4861],{"type":57,"tag":81,"props":4862,"children":4863},{"__ignoreMap":78},[4864,4871],{"type":57,"tag":85,"props":4865,"children":4866},{"class":87,"line":88},[4867],{"type":57,"tag":85,"props":4868,"children":4869},{"style":92},[4870],{"type":63,"value":4812},{"type":57,"tag":85,"props":4872,"children":4873},{"class":87,"line":98},[4874,4878,4882,4886,4890,4894,4898,4902,4906,4910],{"type":57,"tag":85,"props":4875,"children":4876},{"style":102},[4877],{"type":63,"value":105},{"type":57,"tag":85,"props":4879,"children":4880},{"style":102},[4881],{"type":63,"value":1103},{"type":57,"tag":85,"props":4883,"children":4884},{"style":108},[4885],{"type":63,"value":111},{"type":57,"tag":85,"props":4887,"children":4888},{"style":114},[4889],{"type":63,"value":1108},{"type":57,"tag":85,"props":4891,"children":4892},{"style":108},[4893],{"type":63,"value":122},{"type":57,"tag":85,"props":4895,"children":4896},{"style":102},[4897],{"type":63,"value":127},{"type":57,"tag":85,"props":4899,"children":4900},{"style":108},[4901],{"type":63,"value":132},{"type":57,"tag":85,"props":4903,"children":4904},{"style":135},[4905],{"type":63,"value":4844},{"type":57,"tag":85,"props":4907,"children":4908},{"style":108},[4909],{"type":63,"value":143},{"type":57,"tag":85,"props":4911,"children":4912},{"style":108},[4913],{"type":63,"value":148},{"type":57,"tag":2699,"props":4915,"children":4916},{},[4917,4919,4925],{"type":63,"value":4918},"A non-type import pulls the entire server bundle into the client; use ",{"type":57,"tag":81,"props":4920,"children":4922},{"className":4921},[],[4923],{"type":63,"value":4924},"import type",{"type":63,"value":4926}," so it is stripped at build time.",{"type":57,"tag":2699,"props":4928,"children":4929},{},[4930],{"type":63,"value":4435},{"type":57,"tag":1324,"props":4932,"children":4934},{"id":4933},"medium-creating-context-without-innerouter-split",[4935,4940],{"type":57,"tag":85,"props":4936,"children":4937},{},[4938],{"type":63,"value":4939},"MEDIUM",{"type":63,"value":4941}," Creating context without inner\u002Fouter split",{"type":57,"tag":2699,"props":4943,"children":4944},{},[4945],{"type":63,"value":3905},{"type":57,"tag":73,"props":4947,"children":4949},{"className":75,"code":4948,"language":77,"meta":78,"style":78},"import type { CreateExpressContextOptions } from '@trpc\u002Fserver\u002Fadapters\u002Fexpress';\n\nexport function createContext({ req }: CreateExpressContextOptions) {\n  return { db: prisma, user: getUserFromReq(req) };\n}\n",[4950],{"type":57,"tag":81,"props":4951,"children":4952},{"__ignoreMap":78},[4953,4998,5005,5046,5105],{"type":57,"tag":85,"props":4954,"children":4955},{"class":87,"line":88},[4956,4960,4964,4968,4973,4977,4981,4985,4990,4994],{"type":57,"tag":85,"props":4957,"children":4958},{"style":102},[4959],{"type":63,"value":105},{"type":57,"tag":85,"props":4961,"children":4962},{"style":102},[4963],{"type":63,"value":1103},{"type":57,"tag":85,"props":4965,"children":4966},{"style":108},[4967],{"type":63,"value":111},{"type":57,"tag":85,"props":4969,"children":4970},{"style":114},[4971],{"type":63,"value":4972}," CreateExpressContextOptions",{"type":57,"tag":85,"props":4974,"children":4975},{"style":108},[4976],{"type":63,"value":122},{"type":57,"tag":85,"props":4978,"children":4979},{"style":102},[4980],{"type":63,"value":127},{"type":57,"tag":85,"props":4982,"children":4983},{"style":108},[4984],{"type":63,"value":132},{"type":57,"tag":85,"props":4986,"children":4987},{"style":135},[4988],{"type":63,"value":4989},"@trpc\u002Fserver\u002Fadapters\u002Fexpress",{"type":57,"tag":85,"props":4991,"children":4992},{"style":108},[4993],{"type":63,"value":143},{"type":57,"tag":85,"props":4995,"children":4996},{"style":108},[4997],{"type":63,"value":148},{"type":57,"tag":85,"props":4999,"children":5000},{"class":87,"line":98},[5001],{"type":57,"tag":85,"props":5002,"children":5003},{"emptyLinePlaceholder":155},[5004],{"type":63,"value":158},{"type":57,"tag":85,"props":5006,"children":5007},{"class":87,"line":151},[5008,5012,5016,5020,5024,5029,5034,5038,5042],{"type":57,"tag":85,"props":5009,"children":5010},{"style":102},[5011],{"type":63,"value":219},{"type":57,"tag":85,"props":5013,"children":5014},{"style":165},[5015],{"type":63,"value":1412},{"type":57,"tag":85,"props":5017,"children":5018},{"style":190},[5019],{"type":63,"value":1417},{"type":57,"tag":85,"props":5021,"children":5022},{"style":108},[5023],{"type":63,"value":3126},{"type":57,"tag":85,"props":5025,"children":5026},{"style":757},[5027],{"type":63,"value":5028}," req",{"type":57,"tag":85,"props":5030,"children":5031},{"style":108},[5032],{"type":63,"value":5033}," }:",{"type":57,"tag":85,"props":5035,"children":5036},{"style":414},[5037],{"type":63,"value":4972},{"type":57,"tag":85,"props":5039,"children":5040},{"style":108},[5041],{"type":63,"value":673},{"type":57,"tag":85,"props":5043,"children":5044},{"style":108},[5045],{"type":63,"value":581},{"type":57,"tag":85,"props":5047,"children":5048},{"class":87,"line":161},[5049,5053,5057,5061,5065,5070,5074,5078,5082,5087,5091,5095,5100],{"type":57,"tag":85,"props":5050,"children":5051},{"style":102},[5052],{"type":63,"value":1516},{"type":57,"tag":85,"props":5054,"children":5055},{"style":108},[5056],{"type":63,"value":111},{"type":57,"tag":85,"props":5058,"children":5059},{"style":429},[5060],{"type":63,"value":2155},{"type":57,"tag":85,"props":5062,"children":5063},{"style":108},[5064],{"type":63,"value":437},{"type":57,"tag":85,"props":5066,"children":5067},{"style":114},[5068],{"type":63,"value":5069}," prisma",{"type":57,"tag":85,"props":5071,"children":5072},{"style":108},[5073],{"type":63,"value":366},{"type":57,"tag":85,"props":5075,"children":5076},{"style":429},[5077],{"type":63,"value":2225},{"type":57,"tag":85,"props":5079,"children":5080},{"style":108},[5081],{"type":63,"value":437},{"type":57,"tag":85,"props":5083,"children":5084},{"style":190},[5085],{"type":63,"value":5086}," getUserFromReq",{"type":57,"tag":85,"props":5088,"children":5089},{"style":429},[5090],{"type":63,"value":501},{"type":57,"tag":85,"props":5092,"children":5093},{"style":114},[5094],{"type":63,"value":1473},{"type":57,"tag":85,"props":5096,"children":5097},{"style":429},[5098],{"type":63,"value":5099},") ",{"type":57,"tag":85,"props":5101,"children":5102},{"style":108},[5103],{"type":63,"value":5104},"};\n",{"type":57,"tag":85,"props":5106,"children":5107},{"class":87,"line":205},[5108],{"type":57,"tag":85,"props":5109,"children":5110},{"style":108},[5111],{"type":63,"value":1536},{"type":57,"tag":2699,"props":5113,"children":5114},{},[5115],{"type":63,"value":4185},{"type":57,"tag":73,"props":5117,"children":5119},{"className":75,"code":5118,"language":77,"meta":78,"style":78},"import type { CreateExpressContextOptions } from '@trpc\u002Fserver\u002Fadapters\u002Fexpress';\n\nexport function createContextInner(opts: { user?: User }) {\n  return { db: prisma, user: opts.user ?? null };\n}\n\nexport function createContext({ req }: CreateExpressContextOptions) {\n  return createContextInner({ user: getUserFromReq(req) });\n}\n",[5120],{"type":57,"tag":81,"props":5121,"children":5122},{"__ignoreMap":78},[5123,5166,5173,5224,5284,5291,5298,5337,5392],{"type":57,"tag":85,"props":5124,"children":5125},{"class":87,"line":88},[5126,5130,5134,5138,5142,5146,5150,5154,5158,5162],{"type":57,"tag":85,"props":5127,"children":5128},{"style":102},[5129],{"type":63,"value":105},{"type":57,"tag":85,"props":5131,"children":5132},{"style":102},[5133],{"type":63,"value":1103},{"type":57,"tag":85,"props":5135,"children":5136},{"style":108},[5137],{"type":63,"value":111},{"type":57,"tag":85,"props":5139,"children":5140},{"style":114},[5141],{"type":63,"value":4972},{"type":57,"tag":85,"props":5143,"children":5144},{"style":108},[5145],{"type":63,"value":122},{"type":57,"tag":85,"props":5147,"children":5148},{"style":102},[5149],{"type":63,"value":127},{"type":57,"tag":85,"props":5151,"children":5152},{"style":108},[5153],{"type":63,"value":132},{"type":57,"tag":85,"props":5155,"children":5156},{"style":135},[5157],{"type":63,"value":4989},{"type":57,"tag":85,"props":5159,"children":5160},{"style":108},[5161],{"type":63,"value":143},{"type":57,"tag":85,"props":5163,"children":5164},{"style":108},[5165],{"type":63,"value":148},{"type":57,"tag":85,"props":5167,"children":5168},{"class":87,"line":98},[5169],{"type":57,"tag":85,"props":5170,"children":5171},{"emptyLinePlaceholder":155},[5172],{"type":63,"value":158},{"type":57,"tag":85,"props":5174,"children":5175},{"class":87,"line":151},[5176,5180,5184,5188,5192,5196,5200,5204,5208,5212,5216,5220],{"type":57,"tag":85,"props":5177,"children":5178},{"style":102},[5179],{"type":63,"value":219},{"type":57,"tag":85,"props":5181,"children":5182},{"style":165},[5183],{"type":63,"value":1412},{"type":57,"tag":85,"props":5185,"children":5186},{"style":190},[5187],{"type":63,"value":2302},{"type":57,"tag":85,"props":5189,"children":5190},{"style":108},[5191],{"type":63,"value":501},{"type":57,"tag":85,"props":5193,"children":5194},{"style":757},[5195],{"type":63,"value":1426},{"type":57,"tag":85,"props":5197,"children":5198},{"style":108},[5199],{"type":63,"value":437},{"type":57,"tag":85,"props":5201,"children":5202},{"style":108},[5203],{"type":63,"value":111},{"type":57,"tag":85,"props":5205,"children":5206},{"style":429},[5207],{"type":63,"value":2225},{"type":57,"tag":85,"props":5209,"children":5210},{"style":108},[5211],{"type":63,"value":2315},{"type":57,"tag":85,"props":5213,"children":5214},{"style":414},[5215],{"type":63,"value":417},{"type":57,"tag":85,"props":5217,"children":5218},{"style":108},[5219],{"type":63,"value":3135},{"type":57,"tag":85,"props":5221,"children":5222},{"style":108},[5223],{"type":63,"value":581},{"type":57,"tag":85,"props":5225,"children":5226},{"class":87,"line":161},[5227,5231,5235,5239,5243,5247,5251,5255,5259,5263,5267,5272,5276,5280],{"type":57,"tag":85,"props":5228,"children":5229},{"style":102},[5230],{"type":63,"value":1516},{"type":57,"tag":85,"props":5232,"children":5233},{"style":108},[5234],{"type":63,"value":111},{"type":57,"tag":85,"props":5236,"children":5237},{"style":429},[5238],{"type":63,"value":2155},{"type":57,"tag":85,"props":5240,"children":5241},{"style":108},[5242],{"type":63,"value":437},{"type":57,"tag":85,"props":5244,"children":5245},{"style":114},[5246],{"type":63,"value":5069},{"type":57,"tag":85,"props":5248,"children":5249},{"style":108},[5250],{"type":63,"value":366},{"type":57,"tag":85,"props":5252,"children":5253},{"style":429},[5254],{"type":63,"value":2225},{"type":57,"tag":85,"props":5256,"children":5257},{"style":108},[5258],{"type":63,"value":437},{"type":57,"tag":85,"props":5260,"children":5261},{"style":114},[5262],{"type":63,"value":1464},{"type":57,"tag":85,"props":5264,"children":5265},{"style":108},[5266],{"type":63,"value":187},{"type":57,"tag":85,"props":5268,"children":5269},{"style":114},[5270],{"type":63,"value":5271},"user",{"type":57,"tag":85,"props":5273,"children":5274},{"style":108},[5275],{"type":63,"value":2381},{"type":57,"tag":85,"props":5277,"children":5278},{"style":108},[5279],{"type":63,"value":2264},{"type":57,"tag":85,"props":5281,"children":5282},{"style":108},[5283],{"type":63,"value":465},{"type":57,"tag":85,"props":5285,"children":5286},{"class":87,"line":205},[5287],{"type":57,"tag":85,"props":5288,"children":5289},{"style":108},[5290],{"type":63,"value":1536},{"type":57,"tag":85,"props":5292,"children":5293},{"class":87,"line":213},[5294],{"type":57,"tag":85,"props":5295,"children":5296},{"emptyLinePlaceholder":155},[5297],{"type":63,"value":158},{"type":57,"tag":85,"props":5299,"children":5300},{"class":87,"line":254},[5301,5305,5309,5313,5317,5321,5325,5329,5333],{"type":57,"tag":85,"props":5302,"children":5303},{"style":102},[5304],{"type":63,"value":219},{"type":57,"tag":85,"props":5306,"children":5307},{"style":165},[5308],{"type":63,"value":1412},{"type":57,"tag":85,"props":5310,"children":5311},{"style":190},[5312],{"type":63,"value":1417},{"type":57,"tag":85,"props":5314,"children":5315},{"style":108},[5316],{"type":63,"value":3126},{"type":57,"tag":85,"props":5318,"children":5319},{"style":757},[5320],{"type":63,"value":5028},{"type":57,"tag":85,"props":5322,"children":5323},{"style":108},[5324],{"type":63,"value":5033},{"type":57,"tag":85,"props":5326,"children":5327},{"style":414},[5328],{"type":63,"value":4972},{"type":57,"tag":85,"props":5330,"children":5331},{"style":108},[5332],{"type":63,"value":673},{"type":57,"tag":85,"props":5334,"children":5335},{"style":108},[5336],{"type":63,"value":581},{"type":57,"tag":85,"props":5338,"children":5339},{"class":87,"line":509},[5340,5344,5348,5352,5356,5360,5364,5368,5372,5376,5380,5384,5388],{"type":57,"tag":85,"props":5341,"children":5342},{"style":102},[5343],{"type":63,"value":1516},{"type":57,"tag":85,"props":5345,"children":5346},{"style":190},[5347],{"type":63,"value":2302},{"type":57,"tag":85,"props":5349,"children":5350},{"style":429},[5351],{"type":63,"value":501},{"type":57,"tag":85,"props":5353,"children":5354},{"style":108},[5355],{"type":63,"value":600},{"type":57,"tag":85,"props":5357,"children":5358},{"style":429},[5359],{"type":63,"value":2225},{"type":57,"tag":85,"props":5361,"children":5362},{"style":108},[5363],{"type":63,"value":437},{"type":57,"tag":85,"props":5365,"children":5366},{"style":190},[5367],{"type":63,"value":5086},{"type":57,"tag":85,"props":5369,"children":5370},{"style":429},[5371],{"type":63,"value":501},{"type":57,"tag":85,"props":5373,"children":5374},{"style":114},[5375],{"type":63,"value":1473},{"type":57,"tag":85,"props":5377,"children":5378},{"style":429},[5379],{"type":63,"value":5099},{"type":57,"tag":85,"props":5381,"children":5382},{"style":108},[5383],{"type":63,"value":939},{"type":57,"tag":85,"props":5385,"children":5386},{"style":429},[5387],{"type":63,"value":673},{"type":57,"tag":85,"props":5389,"children":5390},{"style":108},[5391],{"type":63,"value":148},{"type":57,"tag":85,"props":5393,"children":5394},{"class":87,"line":584},[5395],{"type":57,"tag":85,"props":5396,"children":5397},{"style":108},[5398],{"type":63,"value":1536},{"type":57,"tag":2699,"props":5400,"children":5401},{},[5402],{"type":63,"value":5403},"Without an inner context factory, server-side callers and tests must construct HTTP request objects to get context.",{"type":57,"tag":2699,"props":5405,"children":5406},{},[5407],{"type":63,"value":5408},"Source: www\u002Fdocs\u002Fserver\u002Fcontext.md",{"type":57,"tag":1324,"props":5410,"children":5412},{"id":5411},"high-merging-routers-with-different-transformers",[5413,5417],{"type":57,"tag":85,"props":5414,"children":5415},{},[5416],{"type":63,"value":4444},{"type":63,"value":5418}," Merging routers with different transformers",{"type":57,"tag":2699,"props":5420,"children":5421},{},[5422],{"type":63,"value":3905},{"type":57,"tag":73,"props":5424,"children":5426},{"className":75,"code":5425,"language":77,"meta":78,"style":78},"import { initTRPC } from '@trpc\u002Fserver';\nimport superjson from 'superjson';\n\nconst t1 = initTRPC.create({ transformer: superjson });\nconst t2 = initTRPC.create();\n\nconst router1 = t1.router({ a: t1.procedure.query(() => 'a') });\nconst router2 = t2.router({ b: t2.procedure.query(() => 'b') });\n\nt1.mergeRouters(router1, router2);\n",[5427],{"type":57,"tag":81,"props":5428,"children":5429},{"__ignoreMap":78},[5430,5469,5503,5510,5571,5606,5613,5720,5826,5833],{"type":57,"tag":85,"props":5431,"children":5432},{"class":87,"line":88},[5433,5437,5441,5445,5449,5453,5457,5461,5465],{"type":57,"tag":85,"props":5434,"children":5435},{"style":102},[5436],{"type":63,"value":105},{"type":57,"tag":85,"props":5438,"children":5439},{"style":108},[5440],{"type":63,"value":111},{"type":57,"tag":85,"props":5442,"children":5443},{"style":114},[5444],{"type":63,"value":117},{"type":57,"tag":85,"props":5446,"children":5447},{"style":108},[5448],{"type":63,"value":122},{"type":57,"tag":85,"props":5450,"children":5451},{"style":102},[5452],{"type":63,"value":127},{"type":57,"tag":85,"props":5454,"children":5455},{"style":108},[5456],{"type":63,"value":132},{"type":57,"tag":85,"props":5458,"children":5459},{"style":135},[5460],{"type":63,"value":138},{"type":57,"tag":85,"props":5462,"children":5463},{"style":108},[5464],{"type":63,"value":143},{"type":57,"tag":85,"props":5466,"children":5467},{"style":108},[5468],{"type":63,"value":148},{"type":57,"tag":85,"props":5470,"children":5471},{"class":87,"line":98},[5472,5476,5481,5486,5490,5495,5499],{"type":57,"tag":85,"props":5473,"children":5474},{"style":102},[5475],{"type":63,"value":105},{"type":57,"tag":85,"props":5477,"children":5478},{"style":114},[5479],{"type":63,"value":5480}," superjson ",{"type":57,"tag":85,"props":5482,"children":5483},{"style":102},[5484],{"type":63,"value":5485},"from",{"type":57,"tag":85,"props":5487,"children":5488},{"style":108},[5489],{"type":63,"value":132},{"type":57,"tag":85,"props":5491,"children":5492},{"style":135},[5493],{"type":63,"value":5494},"superjson",{"type":57,"tag":85,"props":5496,"children":5497},{"style":108},[5498],{"type":63,"value":143},{"type":57,"tag":85,"props":5500,"children":5501},{"style":108},[5502],{"type":63,"value":148},{"type":57,"tag":85,"props":5504,"children":5505},{"class":87,"line":151},[5506],{"type":57,"tag":85,"props":5507,"children":5508},{"emptyLinePlaceholder":155},[5509],{"type":63,"value":158},{"type":57,"tag":85,"props":5511,"children":5512},{"class":87,"line":161},[5513,5517,5522,5526,5530,5534,5538,5542,5546,5551,5555,5559,5563,5567],{"type":57,"tag":85,"props":5514,"children":5515},{"style":165},[5516],{"type":63,"value":168},{"type":57,"tag":85,"props":5518,"children":5519},{"style":114},[5520],{"type":63,"value":5521}," t1 ",{"type":57,"tag":85,"props":5523,"children":5524},{"style":108},[5525],{"type":63,"value":178},{"type":57,"tag":85,"props":5527,"children":5528},{"style":114},[5529],{"type":63,"value":117},{"type":57,"tag":85,"props":5531,"children":5532},{"style":108},[5533],{"type":63,"value":187},{"type":57,"tag":85,"props":5535,"children":5536},{"style":190},[5537],{"type":63,"value":193},{"type":57,"tag":85,"props":5539,"children":5540},{"style":114},[5541],{"type":63,"value":501},{"type":57,"tag":85,"props":5543,"children":5544},{"style":108},[5545],{"type":63,"value":600},{"type":57,"tag":85,"props":5547,"children":5548},{"style":429},[5549],{"type":63,"value":5550}," transformer",{"type":57,"tag":85,"props":5552,"children":5553},{"style":108},[5554],{"type":63,"value":437},{"type":57,"tag":85,"props":5556,"children":5557},{"style":114},[5558],{"type":63,"value":5480},{"type":57,"tag":85,"props":5560,"children":5561},{"style":108},[5562],{"type":63,"value":939},{"type":57,"tag":85,"props":5564,"children":5565},{"style":114},[5566],{"type":63,"value":673},{"type":57,"tag":85,"props":5568,"children":5569},{"style":108},[5570],{"type":63,"value":148},{"type":57,"tag":85,"props":5572,"children":5573},{"class":87,"line":205},[5574,5578,5582,5586,5590,5594,5598,5602],{"type":57,"tag":85,"props":5575,"children":5576},{"style":165},[5577],{"type":63,"value":168},{"type":57,"tag":85,"props":5579,"children":5580},{"style":114},[5581],{"type":63,"value":4108},{"type":57,"tag":85,"props":5583,"children":5584},{"style":108},[5585],{"type":63,"value":178},{"type":57,"tag":85,"props":5587,"children":5588},{"style":114},[5589],{"type":63,"value":117},{"type":57,"tag":85,"props":5591,"children":5592},{"style":108},[5593],{"type":63,"value":187},{"type":57,"tag":85,"props":5595,"children":5596},{"style":190},[5597],{"type":63,"value":193},{"type":57,"tag":85,"props":5599,"children":5600},{"style":114},[5601],{"type":63,"value":198},{"type":57,"tag":85,"props":5603,"children":5604},{"style":108},[5605],{"type":63,"value":148},{"type":57,"tag":85,"props":5607,"children":5608},{"class":87,"line":213},[5609],{"type":57,"tag":85,"props":5610,"children":5611},{"emptyLinePlaceholder":155},[5612],{"type":63,"value":158},{"type":57,"tag":85,"props":5614,"children":5615},{"class":87,"line":254},[5616,5620,5625,5629,5634,5638,5642,5646,5650,5655,5659,5663,5667,5671,5675,5679,5683,5687,5691,5695,5700,5704,5708,5712,5716],{"type":57,"tag":85,"props":5617,"children":5618},{"style":165},[5619],{"type":63,"value":168},{"type":57,"tag":85,"props":5621,"children":5622},{"style":114},[5623],{"type":63,"value":5624}," router1 ",{"type":57,"tag":85,"props":5626,"children":5627},{"style":108},[5628],{"type":63,"value":178},{"type":57,"tag":85,"props":5630,"children":5631},{"style":114},[5632],{"type":63,"value":5633}," t1",{"type":57,"tag":85,"props":5635,"children":5636},{"style":108},[5637],{"type":63,"value":187},{"type":57,"tag":85,"props":5639,"children":5640},{"style":190},[5641],{"type":63,"value":247},{"type":57,"tag":85,"props":5643,"children":5644},{"style":114},[5645],{"type":63,"value":501},{"type":57,"tag":85,"props":5647,"children":5648},{"style":108},[5649],{"type":63,"value":600},{"type":57,"tag":85,"props":5651,"children":5652},{"style":429},[5653],{"type":63,"value":5654}," a",{"type":57,"tag":85,"props":5656,"children":5657},{"style":108},[5658],{"type":63,"value":437},{"type":57,"tag":85,"props":5660,"children":5661},{"style":114},[5662],{"type":63,"value":5633},{"type":57,"tag":85,"props":5664,"children":5665},{"style":108},[5666],{"type":63,"value":187},{"type":57,"tag":85,"props":5668,"children":5669},{"style":114},[5670],{"type":63,"value":285},{"type":57,"tag":85,"props":5672,"children":5673},{"style":108},[5674],{"type":63,"value":187},{"type":57,"tag":85,"props":5676,"children":5677},{"style":190},[5678],{"type":63,"value":532},{"type":57,"tag":85,"props":5680,"children":5681},{"style":114},[5682],{"type":63,"value":501},{"type":57,"tag":85,"props":5684,"children":5685},{"style":108},[5686],{"type":63,"value":198},{"type":57,"tag":85,"props":5688,"children":5689},{"style":165},[5690],{"type":63,"value":576},{"type":57,"tag":85,"props":5692,"children":5693},{"style":108},[5694],{"type":63,"value":132},{"type":57,"tag":85,"props":5696,"children":5697},{"style":135},[5698],{"type":63,"value":5699},"a",{"type":57,"tag":85,"props":5701,"children":5702},{"style":108},[5703],{"type":63,"value":143},{"type":57,"tag":85,"props":5705,"children":5706},{"style":114},[5707],{"type":63,"value":5099},{"type":57,"tag":85,"props":5709,"children":5710},{"style":108},[5711],{"type":63,"value":939},{"type":57,"tag":85,"props":5713,"children":5714},{"style":114},[5715],{"type":63,"value":673},{"type":57,"tag":85,"props":5717,"children":5718},{"style":108},[5719],{"type":63,"value":148},{"type":57,"tag":85,"props":5721,"children":5722},{"class":87,"line":509},[5723,5727,5732,5736,5740,5744,5748,5752,5756,5761,5765,5769,5773,5777,5781,5785,5789,5793,5797,5801,5806,5810,5814,5818,5822],{"type":57,"tag":85,"props":5724,"children":5725},{"style":165},[5726],{"type":63,"value":168},{"type":57,"tag":85,"props":5728,"children":5729},{"style":114},[5730],{"type":63,"value":5731}," router2 ",{"type":57,"tag":85,"props":5733,"children":5734},{"style":108},[5735],{"type":63,"value":178},{"type":57,"tag":85,"props":5737,"children":5738},{"style":114},[5739],{"type":63,"value":4156},{"type":57,"tag":85,"props":5741,"children":5742},{"style":108},[5743],{"type":63,"value":187},{"type":57,"tag":85,"props":5745,"children":5746},{"style":190},[5747],{"type":63,"value":247},{"type":57,"tag":85,"props":5749,"children":5750},{"style":114},[5751],{"type":63,"value":501},{"type":57,"tag":85,"props":5753,"children":5754},{"style":108},[5755],{"type":63,"value":600},{"type":57,"tag":85,"props":5757,"children":5758},{"style":429},[5759],{"type":63,"value":5760}," b",{"type":57,"tag":85,"props":5762,"children":5763},{"style":108},[5764],{"type":63,"value":437},{"type":57,"tag":85,"props":5766,"children":5767},{"style":114},[5768],{"type":63,"value":4156},{"type":57,"tag":85,"props":5770,"children":5771},{"style":108},[5772],{"type":63,"value":187},{"type":57,"tag":85,"props":5774,"children":5775},{"style":114},[5776],{"type":63,"value":285},{"type":57,"tag":85,"props":5778,"children":5779},{"style":108},[5780],{"type":63,"value":187},{"type":57,"tag":85,"props":5782,"children":5783},{"style":190},[5784],{"type":63,"value":532},{"type":57,"tag":85,"props":5786,"children":5787},{"style":114},[5788],{"type":63,"value":501},{"type":57,"tag":85,"props":5790,"children":5791},{"style":108},[5792],{"type":63,"value":198},{"type":57,"tag":85,"props":5794,"children":5795},{"style":165},[5796],{"type":63,"value":576},{"type":57,"tag":85,"props":5798,"children":5799},{"style":108},[5800],{"type":63,"value":132},{"type":57,"tag":85,"props":5802,"children":5803},{"style":135},[5804],{"type":63,"value":5805},"b",{"type":57,"tag":85,"props":5807,"children":5808},{"style":108},[5809],{"type":63,"value":143},{"type":57,"tag":85,"props":5811,"children":5812},{"style":114},[5813],{"type":63,"value":5099},{"type":57,"tag":85,"props":5815,"children":5816},{"style":108},[5817],{"type":63,"value":939},{"type":57,"tag":85,"props":5819,"children":5820},{"style":114},[5821],{"type":63,"value":673},{"type":57,"tag":85,"props":5823,"children":5824},{"style":108},[5825],{"type":63,"value":148},{"type":57,"tag":85,"props":5827,"children":5828},{"class":87,"line":584},[5829],{"type":57,"tag":85,"props":5830,"children":5831},{"emptyLinePlaceholder":155},[5832],{"type":63,"value":158},{"type":57,"tag":85,"props":5834,"children":5835},{"class":87,"line":662},[5836,5841,5845,5850,5855,5859,5864],{"type":57,"tag":85,"props":5837,"children":5838},{"style":114},[5839],{"type":63,"value":5840},"t1",{"type":57,"tag":85,"props":5842,"children":5843},{"style":108},[5844],{"type":63,"value":187},{"type":57,"tag":85,"props":5846,"children":5847},{"style":190},[5848],{"type":63,"value":5849},"mergeRouters",{"type":57,"tag":85,"props":5851,"children":5852},{"style":114},[5853],{"type":63,"value":5854},"(router1",{"type":57,"tag":85,"props":5856,"children":5857},{"style":108},[5858],{"type":63,"value":366},{"type":57,"tag":85,"props":5860,"children":5861},{"style":114},[5862],{"type":63,"value":5863}," router2)",{"type":57,"tag":85,"props":5865,"children":5866},{"style":108},[5867],{"type":63,"value":148},{"type":57,"tag":2699,"props":5869,"children":5870},{},[5871],{"type":63,"value":4185},{"type":57,"tag":73,"props":5873,"children":5875},{"className":75,"code":5874,"language":77,"meta":78,"style":78},"import { initTRPC } from '@trpc\u002Fserver';\nimport superjson from 'superjson';\n\nconst t = initTRPC.create({ transformer: superjson });\n\nconst router1 = t.router({ a: t.procedure.query(() => 'a') });\nconst router2 = t.router({ b: t.procedure.query(() => 'b') });\n\nt.mergeRouters(router1, router2);\n",[5876],{"type":57,"tag":81,"props":5877,"children":5878},{"__ignoreMap":78},[5879,5918,5949,5956,6015,6022,6125,6228,6235],{"type":57,"tag":85,"props":5880,"children":5881},{"class":87,"line":88},[5882,5886,5890,5894,5898,5902,5906,5910,5914],{"type":57,"tag":85,"props":5883,"children":5884},{"style":102},[5885],{"type":63,"value":105},{"type":57,"tag":85,"props":5887,"children":5888},{"style":108},[5889],{"type":63,"value":111},{"type":57,"tag":85,"props":5891,"children":5892},{"style":114},[5893],{"type":63,"value":117},{"type":57,"tag":85,"props":5895,"children":5896},{"style":108},[5897],{"type":63,"value":122},{"type":57,"tag":85,"props":5899,"children":5900},{"style":102},[5901],{"type":63,"value":127},{"type":57,"tag":85,"props":5903,"children":5904},{"style":108},[5905],{"type":63,"value":132},{"type":57,"tag":85,"props":5907,"children":5908},{"style":135},[5909],{"type":63,"value":138},{"type":57,"tag":85,"props":5911,"children":5912},{"style":108},[5913],{"type":63,"value":143},{"type":57,"tag":85,"props":5915,"children":5916},{"style":108},[5917],{"type":63,"value":148},{"type":57,"tag":85,"props":5919,"children":5920},{"class":87,"line":98},[5921,5925,5929,5933,5937,5941,5945],{"type":57,"tag":85,"props":5922,"children":5923},{"style":102},[5924],{"type":63,"value":105},{"type":57,"tag":85,"props":5926,"children":5927},{"style":114},[5928],{"type":63,"value":5480},{"type":57,"tag":85,"props":5930,"children":5931},{"style":102},[5932],{"type":63,"value":5485},{"type":57,"tag":85,"props":5934,"children":5935},{"style":108},[5936],{"type":63,"value":132},{"type":57,"tag":85,"props":5938,"children":5939},{"style":135},[5940],{"type":63,"value":5494},{"type":57,"tag":85,"props":5942,"children":5943},{"style":108},[5944],{"type":63,"value":143},{"type":57,"tag":85,"props":5946,"children":5947},{"style":108},[5948],{"type":63,"value":148},{"type":57,"tag":85,"props":5950,"children":5951},{"class":87,"line":151},[5952],{"type":57,"tag":85,"props":5953,"children":5954},{"emptyLinePlaceholder":155},[5955],{"type":63,"value":158},{"type":57,"tag":85,"props":5957,"children":5958},{"class":87,"line":161},[5959,5963,5967,5971,5975,5979,5983,5987,5991,5995,5999,6003,6007,6011],{"type":57,"tag":85,"props":5960,"children":5961},{"style":165},[5962],{"type":63,"value":168},{"type":57,"tag":85,"props":5964,"children":5965},{"style":114},[5966],{"type":63,"value":173},{"type":57,"tag":85,"props":5968,"children":5969},{"style":108},[5970],{"type":63,"value":178},{"type":57,"tag":85,"props":5972,"children":5973},{"style":114},[5974],{"type":63,"value":117},{"type":57,"tag":85,"props":5976,"children":5977},{"style":108},[5978],{"type":63,"value":187},{"type":57,"tag":85,"props":5980,"children":5981},{"style":190},[5982],{"type":63,"value":193},{"type":57,"tag":85,"props":5984,"children":5985},{"style":114},[5986],{"type":63,"value":501},{"type":57,"tag":85,"props":5988,"children":5989},{"style":108},[5990],{"type":63,"value":600},{"type":57,"tag":85,"props":5992,"children":5993},{"style":429},[5994],{"type":63,"value":5550},{"type":57,"tag":85,"props":5996,"children":5997},{"style":108},[5998],{"type":63,"value":437},{"type":57,"tag":85,"props":6000,"children":6001},{"style":114},[6002],{"type":63,"value":5480},{"type":57,"tag":85,"props":6004,"children":6005},{"style":108},[6006],{"type":63,"value":939},{"type":57,"tag":85,"props":6008,"children":6009},{"style":114},[6010],{"type":63,"value":673},{"type":57,"tag":85,"props":6012,"children":6013},{"style":108},[6014],{"type":63,"value":148},{"type":57,"tag":85,"props":6016,"children":6017},{"class":87,"line":205},[6018],{"type":57,"tag":85,"props":6019,"children":6020},{"emptyLinePlaceholder":155},[6021],{"type":63,"value":158},{"type":57,"tag":85,"props":6023,"children":6024},{"class":87,"line":213},[6025,6029,6033,6037,6041,6045,6049,6053,6057,6061,6065,6069,6073,6077,6081,6085,6089,6093,6097,6101,6105,6109,6113,6117,6121],{"type":57,"tag":85,"props":6026,"children":6027},{"style":165},[6028],{"type":63,"value":168},{"type":57,"tag":85,"props":6030,"children":6031},{"style":114},[6032],{"type":63,"value":5624},{"type":57,"tag":85,"props":6034,"children":6035},{"style":108},[6036],{"type":63,"value":178},{"type":57,"tag":85,"props":6038,"children":6039},{"style":114},[6040],{"type":63,"value":238},{"type":57,"tag":85,"props":6042,"children":6043},{"style":108},[6044],{"type":63,"value":187},{"type":57,"tag":85,"props":6046,"children":6047},{"style":190},[6048],{"type":63,"value":247},{"type":57,"tag":85,"props":6050,"children":6051},{"style":114},[6052],{"type":63,"value":501},{"type":57,"tag":85,"props":6054,"children":6055},{"style":108},[6056],{"type":63,"value":600},{"type":57,"tag":85,"props":6058,"children":6059},{"style":429},[6060],{"type":63,"value":5654},{"type":57,"tag":85,"props":6062,"children":6063},{"style":108},[6064],{"type":63,"value":437},{"type":57,"tag":85,"props":6066,"children":6067},{"style":114},[6068],{"type":63,"value":238},{"type":57,"tag":85,"props":6070,"children":6071},{"style":108},[6072],{"type":63,"value":187},{"type":57,"tag":85,"props":6074,"children":6075},{"style":114},[6076],{"type":63,"value":285},{"type":57,"tag":85,"props":6078,"children":6079},{"style":108},[6080],{"type":63,"value":187},{"type":57,"tag":85,"props":6082,"children":6083},{"style":190},[6084],{"type":63,"value":532},{"type":57,"tag":85,"props":6086,"children":6087},{"style":114},[6088],{"type":63,"value":501},{"type":57,"tag":85,"props":6090,"children":6091},{"style":108},[6092],{"type":63,"value":198},{"type":57,"tag":85,"props":6094,"children":6095},{"style":165},[6096],{"type":63,"value":576},{"type":57,"tag":85,"props":6098,"children":6099},{"style":108},[6100],{"type":63,"value":132},{"type":57,"tag":85,"props":6102,"children":6103},{"style":135},[6104],{"type":63,"value":5699},{"type":57,"tag":85,"props":6106,"children":6107},{"style":108},[6108],{"type":63,"value":143},{"type":57,"tag":85,"props":6110,"children":6111},{"style":114},[6112],{"type":63,"value":5099},{"type":57,"tag":85,"props":6114,"children":6115},{"style":108},[6116],{"type":63,"value":939},{"type":57,"tag":85,"props":6118,"children":6119},{"style":114},[6120],{"type":63,"value":673},{"type":57,"tag":85,"props":6122,"children":6123},{"style":108},[6124],{"type":63,"value":148},{"type":57,"tag":85,"props":6126,"children":6127},{"class":87,"line":254},[6128,6132,6136,6140,6144,6148,6152,6156,6160,6164,6168,6172,6176,6180,6184,6188,6192,6196,6200,6204,6208,6212,6216,6220,6224],{"type":57,"tag":85,"props":6129,"children":6130},{"style":165},[6131],{"type":63,"value":168},{"type":57,"tag":85,"props":6133,"children":6134},{"style":114},[6135],{"type":63,"value":5731},{"type":57,"tag":85,"props":6137,"children":6138},{"style":108},[6139],{"type":63,"value":178},{"type":57,"tag":85,"props":6141,"children":6142},{"style":114},[6143],{"type":63,"value":238},{"type":57,"tag":85,"props":6145,"children":6146},{"style":108},[6147],{"type":63,"value":187},{"type":57,"tag":85,"props":6149,"children":6150},{"style":190},[6151],{"type":63,"value":247},{"type":57,"tag":85,"props":6153,"children":6154},{"style":114},[6155],{"type":63,"value":501},{"type":57,"tag":85,"props":6157,"children":6158},{"style":108},[6159],{"type":63,"value":600},{"type":57,"tag":85,"props":6161,"children":6162},{"style":429},[6163],{"type":63,"value":5760},{"type":57,"tag":85,"props":6165,"children":6166},{"style":108},[6167],{"type":63,"value":437},{"type":57,"tag":85,"props":6169,"children":6170},{"style":114},[6171],{"type":63,"value":238},{"type":57,"tag":85,"props":6173,"children":6174},{"style":108},[6175],{"type":63,"value":187},{"type":57,"tag":85,"props":6177,"children":6178},{"style":114},[6179],{"type":63,"value":285},{"type":57,"tag":85,"props":6181,"children":6182},{"style":108},[6183],{"type":63,"value":187},{"type":57,"tag":85,"props":6185,"children":6186},{"style":190},[6187],{"type":63,"value":532},{"type":57,"tag":85,"props":6189,"children":6190},{"style":114},[6191],{"type":63,"value":501},{"type":57,"tag":85,"props":6193,"children":6194},{"style":108},[6195],{"type":63,"value":198},{"type":57,"tag":85,"props":6197,"children":6198},{"style":165},[6199],{"type":63,"value":576},{"type":57,"tag":85,"props":6201,"children":6202},{"style":108},[6203],{"type":63,"value":132},{"type":57,"tag":85,"props":6205,"children":6206},{"style":135},[6207],{"type":63,"value":5805},{"type":57,"tag":85,"props":6209,"children":6210},{"style":108},[6211],{"type":63,"value":143},{"type":57,"tag":85,"props":6213,"children":6214},{"style":114},[6215],{"type":63,"value":5099},{"type":57,"tag":85,"props":6217,"children":6218},{"style":108},[6219],{"type":63,"value":939},{"type":57,"tag":85,"props":6221,"children":6222},{"style":114},[6223],{"type":63,"value":673},{"type":57,"tag":85,"props":6225,"children":6226},{"style":108},[6227],{"type":63,"value":148},{"type":57,"tag":85,"props":6229,"children":6230},{"class":87,"line":509},[6231],{"type":57,"tag":85,"props":6232,"children":6233},{"emptyLinePlaceholder":155},[6234],{"type":63,"value":158},{"type":57,"tag":85,"props":6236,"children":6237},{"class":87,"line":584},[6238,6243,6247,6251,6255,6259,6263],{"type":57,"tag":85,"props":6239,"children":6240},{"style":114},[6241],{"type":63,"value":6242},"t",{"type":57,"tag":85,"props":6244,"children":6245},{"style":108},[6246],{"type":63,"value":187},{"type":57,"tag":85,"props":6248,"children":6249},{"style":190},[6250],{"type":63,"value":5849},{"type":57,"tag":85,"props":6252,"children":6253},{"style":114},[6254],{"type":63,"value":5854},{"type":57,"tag":85,"props":6256,"children":6257},{"style":108},[6258],{"type":63,"value":366},{"type":57,"tag":85,"props":6260,"children":6261},{"style":114},[6262],{"type":63,"value":5863},{"type":57,"tag":85,"props":6264,"children":6265},{"style":108},[6266],{"type":63,"value":148},{"type":57,"tag":2699,"props":6268,"children":6269},{},[6270,6276],{"type":57,"tag":81,"props":6271,"children":6273},{"className":6272},[],[6274],{"type":63,"value":6275},"t.mergeRouters()",{"type":63,"value":6277}," throws at runtime if the routers were created with different transformer or errorFormatter configurations.",{"type":57,"tag":2699,"props":6279,"children":6280},{},[6281],{"type":63,"value":4783},{"type":57,"tag":1324,"props":6283,"children":6285},{"id":6284},"critical-importing-approuter-value-into-client-code",[6286,6290],{"type":57,"tag":85,"props":6287,"children":6288},{},[6289],{"type":63,"value":3898},{"type":63,"value":6291}," Importing appRouter value into client code",{"type":57,"tag":2699,"props":6293,"children":6294},{},[6295],{"type":63,"value":3905},{"type":57,"tag":73,"props":6297,"children":6299},{"className":75,"code":6298,"language":77,"meta":78,"style":78},"\u002F\u002F client.ts\nimport { appRouter } from '..\u002Fserver\u002Frouter';\n\ntype AppRouter = typeof appRouter;\n",[6300],{"type":57,"tag":81,"props":6301,"children":6302},{"__ignoreMap":78},[6303,6310,6349,6356],{"type":57,"tag":85,"props":6304,"children":6305},{"class":87,"line":88},[6306],{"type":57,"tag":85,"props":6307,"children":6308},{"style":92},[6309],{"type":63,"value":4812},{"type":57,"tag":85,"props":6311,"children":6312},{"class":87,"line":98},[6313,6317,6321,6325,6329,6333,6337,6341,6345],{"type":57,"tag":85,"props":6314,"children":6315},{"style":102},[6316],{"type":63,"value":105},{"type":57,"tag":85,"props":6318,"children":6319},{"style":108},[6320],{"type":63,"value":111},{"type":57,"tag":85,"props":6322,"children":6323},{"style":114},[6324],{"type":63,"value":1122},{"type":57,"tag":85,"props":6326,"children":6327},{"style":108},[6328],{"type":63,"value":122},{"type":57,"tag":85,"props":6330,"children":6331},{"style":102},[6332],{"type":63,"value":127},{"type":57,"tag":85,"props":6334,"children":6335},{"style":108},[6336],{"type":63,"value":132},{"type":57,"tag":85,"props":6338,"children":6339},{"style":135},[6340],{"type":63,"value":4844},{"type":57,"tag":85,"props":6342,"children":6343},{"style":108},[6344],{"type":63,"value":143},{"type":57,"tag":85,"props":6346,"children":6347},{"style":108},[6348],{"type":63,"value":148},{"type":57,"tag":85,"props":6350,"children":6351},{"class":87,"line":151},[6352],{"type":57,"tag":85,"props":6353,"children":6354},{"emptyLinePlaceholder":155},[6355],{"type":63,"value":158},{"type":57,"tag":85,"props":6357,"children":6358},{"class":87,"line":161},[6359,6363,6367,6371,6375,6379],{"type":57,"tag":85,"props":6360,"children":6361},{"style":165},[6362],{"type":63,"value":411},{"type":57,"tag":85,"props":6364,"children":6365},{"style":414},[6366],{"type":63,"value":1108},{"type":57,"tag":85,"props":6368,"children":6369},{"style":108},[6370],{"type":63,"value":422},{"type":57,"tag":85,"props":6372,"children":6373},{"style":108},[6374],{"type":63,"value":1117},{"type":57,"tag":85,"props":6376,"children":6377},{"style":114},[6378],{"type":63,"value":1122},{"type":57,"tag":85,"props":6380,"children":6381},{"style":108},[6382],{"type":63,"value":148},{"type":57,"tag":2699,"props":6384,"children":6385},{},[6386],{"type":63,"value":4185},{"type":57,"tag":73,"props":6388,"children":6390},{"className":75,"code":6389,"language":77,"meta":78,"style":78},"\u002F\u002F client.ts\nimport type { AppRouter } from '..\u002Fserver\u002Frouter';\n\n\u002F\u002F server\u002Frouter.ts\nexport type AppRouter = typeof appRouter;\n",[6391],{"type":57,"tag":81,"props":6392,"children":6393},{"__ignoreMap":78},[6394,6401,6444,6451,6459],{"type":57,"tag":85,"props":6395,"children":6396},{"class":87,"line":88},[6397],{"type":57,"tag":85,"props":6398,"children":6399},{"style":92},[6400],{"type":63,"value":4812},{"type":57,"tag":85,"props":6402,"children":6403},{"class":87,"line":98},[6404,6408,6412,6416,6420,6424,6428,6432,6436,6440],{"type":57,"tag":85,"props":6405,"children":6406},{"style":102},[6407],{"type":63,"value":105},{"type":57,"tag":85,"props":6409,"children":6410},{"style":102},[6411],{"type":63,"value":1103},{"type":57,"tag":85,"props":6413,"children":6414},{"style":108},[6415],{"type":63,"value":111},{"type":57,"tag":85,"props":6417,"children":6418},{"style":114},[6419],{"type":63,"value":1108},{"type":57,"tag":85,"props":6421,"children":6422},{"style":108},[6423],{"type":63,"value":122},{"type":57,"tag":85,"props":6425,"children":6426},{"style":102},[6427],{"type":63,"value":127},{"type":57,"tag":85,"props":6429,"children":6430},{"style":108},[6431],{"type":63,"value":132},{"type":57,"tag":85,"props":6433,"children":6434},{"style":135},[6435],{"type":63,"value":4844},{"type":57,"tag":85,"props":6437,"children":6438},{"style":108},[6439],{"type":63,"value":143},{"type":57,"tag":85,"props":6441,"children":6442},{"style":108},[6443],{"type":63,"value":148},{"type":57,"tag":85,"props":6445,"children":6446},{"class":87,"line":151},[6447],{"type":57,"tag":85,"props":6448,"children":6449},{"emptyLinePlaceholder":155},[6450],{"type":63,"value":158},{"type":57,"tag":85,"props":6452,"children":6453},{"class":87,"line":161},[6454],{"type":57,"tag":85,"props":6455,"children":6456},{"style":92},[6457],{"type":63,"value":6458},"\u002F\u002F server\u002Frouter.ts\n",{"type":57,"tag":85,"props":6460,"children":6461},{"class":87,"line":205},[6462,6466,6470,6474,6478,6482,6486],{"type":57,"tag":85,"props":6463,"children":6464},{"style":102},[6465],{"type":63,"value":219},{"type":57,"tag":85,"props":6467,"children":6468},{"style":165},[6469],{"type":63,"value":1103},{"type":57,"tag":85,"props":6471,"children":6472},{"style":414},[6473],{"type":63,"value":1108},{"type":57,"tag":85,"props":6475,"children":6476},{"style":108},[6477],{"type":63,"value":422},{"type":57,"tag":85,"props":6479,"children":6480},{"style":108},[6481],{"type":63,"value":1117},{"type":57,"tag":85,"props":6483,"children":6484},{"style":114},[6485],{"type":63,"value":1122},{"type":57,"tag":85,"props":6487,"children":6488},{"style":108},[6489],{"type":63,"value":148},{"type":57,"tag":2699,"props":6491,"children":6492},{},[6493,6495,6501],{"type":63,"value":6494},"Importing the appRouter value bundles the entire server into the client, even if you only use ",{"type":57,"tag":81,"props":6496,"children":6498},{"className":6497},[],[6499],{"type":63,"value":6500},"typeof",{"type":63,"value":187},{"type":57,"tag":2699,"props":6503,"children":6504},{},[6505],{"type":63,"value":4435},{"type":57,"tag":66,"props":6507,"children":6509},{"id":6508},"see-also",[6510],{"type":63,"value":6511},"See Also",{"type":57,"tag":6513,"props":6514,"children":6515},"ul",{},[6516,6528,6539,6550,6561,6572],{"type":57,"tag":6517,"props":6518,"children":6519},"li",{},[6520,6526],{"type":57,"tag":81,"props":6521,"children":6523},{"className":6522},[],[6524],{"type":63,"value":6525},"middlewares",{"type":63,"value":6527}," -- add auth, logging, context extension to procedures",{"type":57,"tag":6517,"props":6529,"children":6530},{},[6531,6537],{"type":57,"tag":81,"props":6532,"children":6534},{"className":6533},[],[6535],{"type":63,"value":6536},"validators",{"type":63,"value":6538}," -- add input\u002Foutput validation with Zod",{"type":57,"tag":6517,"props":6540,"children":6541},{},[6542,6548],{"type":57,"tag":81,"props":6543,"children":6545},{"className":6544},[],[6546],{"type":63,"value":6547},"error-handling",{"type":63,"value":6549}," -- throw and format typed errors",{"type":57,"tag":6517,"props":6551,"children":6552},{},[6553,6559],{"type":57,"tag":81,"props":6554,"children":6556},{"className":6555},[],[6557],{"type":63,"value":6558},"server-side-calls",{"type":63,"value":6560}," -- call procedures from server code",{"type":57,"tag":6517,"props":6562,"children":6563},{},[6564,6570],{"type":57,"tag":81,"props":6565,"children":6567},{"className":6566},[],[6568],{"type":63,"value":6569},"adapter-standalone",{"type":63,"value":6571}," -- mount on Node.js HTTP server",{"type":57,"tag":6517,"props":6573,"children":6574},{},[6575,6581],{"type":57,"tag":81,"props":6576,"children":6578},{"className":6577},[],[6579],{"type":63,"value":6580},"adapter-fetch",{"type":63,"value":6582}," -- mount on edge runtimes",{"type":57,"tag":6584,"props":6585,"children":6586},"style",{},[6587],{"type":63,"value":6588},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":6590,"total":2640},[6591,6604,6617,6630,6649,6661,6675,6689,6701,6713,6723,6734],{"slug":6592,"name":6592,"fn":6593,"description":6594,"org":6595,"tags":6596,"stars":23,"repoUrl":24,"updatedAt":6603},"adapter-aws-lambda","deploy tRPC APIs on AWS Lambda","Deploy tRPC on AWS Lambda with awsLambdaRequestHandler() from @trpc\u002Fserver\u002Fadapters\u002Faws-lambda for API Gateway v1 (REST, APIGatewayProxyEvent) and v2 (HTTP, APIGatewayProxyEventV2), and Lambda Function URLs. Enable response streaming with awsLambdaStreamingRequestHandler() wrapped in awslambda.streamifyResponse(). CreateAWSLambdaContextOptions provides event and context for context creation.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[6597,6598,6601,6602],{"name":21,"slug":22,"type":15},{"name":6599,"slug":6600,"type":15},"AWS","aws",{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},"2026-07-18T05:47:05.451869",{"slug":6605,"name":6605,"fn":6606,"description":6607,"org":6608,"tags":6609,"stars":23,"repoUrl":24,"updatedAt":6616},"adapter-express","mount tRPC as Express middleware","Mount tRPC as Express middleware with createExpressMiddleware() from @trpc\u002Fserver\u002Fadapters\u002Fexpress. Access Express req\u002Fres in createContext via CreateExpressContextOptions. Mount at a path prefix like app.use('\u002Ftrpc', ...). Avoid global express.json() conflicting with tRPC body parsing for FormData.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[6610,6611,6612,6615],{"name":21,"slug":22,"type":15},{"name":13,"slug":14,"type":15},{"name":6613,"slug":6614,"type":15},"Express","express",{"name":9,"slug":8,"type":15},"2026-07-18T05:46:53.274248",{"slug":6618,"name":6618,"fn":6619,"description":6620,"org":6621,"tags":6622,"stars":23,"repoUrl":24,"updatedAt":6629},"adapter-fastify","mount tRPC as a Fastify plugin","Mount tRPC as a Fastify plugin with fastifyTRPCPlugin from @trpc\u002Fserver\u002Fadapters\u002Ffastify. Configure prefix, trpcOptions (router, createContext, onError). Enable WebSocket subscriptions with useWSS and @fastify\u002Fwebsocket. Set routerOptions.maxParamLength for batch requests. Requires Fastify v5+. FastifyTRPCPluginOptions for type-safe onError. CreateFastifyContextOptions provides req, res.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[6623,6624,6625,6628],{"name":21,"slug":22,"type":15},{"name":13,"slug":14,"type":15},{"name":6626,"slug":6627,"type":15},"Fastify","fastify",{"name":9,"slug":8,"type":15},"2026-07-18T05:46:53.746621",{"slug":6580,"name":6580,"fn":6631,"description":6632,"org":6633,"tags":6634,"stars":23,"repoUrl":24,"updatedAt":6648},"deploy tRPC on edge runtimes","Deploy tRPC on WinterCG-compliant edge runtimes with fetchRequestHandler() from @trpc\u002Fserver\u002Fadapters\u002Ffetch. Supports Cloudflare Workers, Deno Deploy, Vercel Edge Runtime, Astro, Remix, SolidStart. FetchCreateContextFnOptions provides req (Request) and resHeaders (Headers) for context creation. The endpoint option must match the URL path prefix where the handler is mounted.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[6635,6638,6641,6644,6645],{"name":6636,"slug":6637,"type":15},"Cloudflare","cloudflare",{"name":6639,"slug":6640,"type":15},"Deployment","deployment",{"name":6642,"slug":6643,"type":15},"Edge","edge",{"name":9,"slug":8,"type":15},{"name":6646,"slug":6647,"type":15},"Vercel","vercel","2026-07-18T05:46:50.548228",{"slug":6569,"name":6569,"fn":6650,"description":6651,"org":6652,"tags":6653,"stars":23,"repoUrl":24,"updatedAt":6660},"mount tRPC on Node.js servers","Mount tRPC on Node.js built-in HTTP server with createHTTPServer() from @trpc\u002Fserver\u002Fadapters\u002Fstandalone, createHTTPHandler() for custom http.createServer, createHTTP2Handler() for HTTP\u002F2 with TLS. Configure basePath to slice URL prefix, CORS via the cors npm package passed as middleware option. CreateHTTPContextOptions provides req and res for context creation.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[6654,6655,6656,6659],{"name":21,"slug":22,"type":15},{"name":13,"slug":14,"type":15},{"name":6657,"slug":6658,"type":15},"Node.js","node-js",{"name":9,"slug":8,"type":15},"2026-07-18T05:46:58.093869",{"slug":6662,"name":6662,"fn":6663,"description":6664,"org":6665,"tags":6666,"stars":23,"repoUrl":24,"updatedAt":6674},"auth","implement authentication in tRPC applications","Implement JWT\u002Fcookie authentication and authorization in tRPC using createContext for user extraction, t.middleware with opts.next({ ctx }) for context narrowing to non-null user, protectedProcedure base pattern, client-side Authorization headers via httpBatchLink headers(), WebSocket connectionParams, and SSE auth via cookies or EventSource polyfill custom headers.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[6667,6669,6672,6673],{"name":6668,"slug":6662,"type":15},"Auth",{"name":6670,"slug":6671,"type":15},"Authentication","authentication",{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},"2026-07-18T05:46:45.347628",{"slug":6676,"name":6676,"fn":6677,"description":6678,"org":6679,"tags":6680,"stars":23,"repoUrl":24,"updatedAt":6688},"caching","configure HTTP caching for tRPC queries","Set HTTP cache headers on tRPC query responses via responseMeta callback for CDN and browser caching. Configure Cache-Control, s-maxage, stale-while-revalidate. Handle caching with batching and authenticated requests. Avoid caching mutations, errors, and authenticated responses.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[6681,6682,6684,6687],{"name":13,"slug":14,"type":15},{"name":6683,"slug":6676,"type":15},"Caching",{"name":6685,"slug":6686,"type":15},"Performance","performance",{"name":9,"slug":8,"type":15},"2026-07-18T05:46:45.86443",{"slug":6690,"name":6690,"fn":6691,"description":6692,"org":6693,"tags":6694,"stars":23,"repoUrl":24,"updatedAt":6700},"client-setup","set up vanilla tRPC clients","Create a vanilla tRPC client with createTRPCClient\u003CAppRouter>(), configure link chain with httpBatchLink\u002FhttpLink, dynamic headers for auth, transformer on links (not client constructor). Infer types with inferRouterInputs and inferRouterOutputs. AbortController signal support. TRPCClientError typing.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[6695,6696,6699],{"name":21,"slug":22,"type":15},{"name":6697,"slug":6698,"type":15},"Frontend","frontend",{"name":9,"slug":8,"type":15},"2026-07-18T05:48:11.437946",{"slug":6547,"name":6547,"fn":6702,"description":6703,"org":6704,"tags":6705,"stars":23,"repoUrl":24,"updatedAt":6712},"implement typed error handling in tRPC","Throw typed errors with TRPCError and error codes (NOT_FOUND, UNAUTHORIZED, BAD_REQUEST, INTERNAL_SERVER_ERROR), configure errorFormatter for client-side Zod error display, handle errors globally with onError callback, map tRPC errors to HTTP status codes with getHTTPStatusCodeFromError().\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[6706,6707,6710,6711],{"name":13,"slug":14,"type":15},{"name":6708,"slug":6709,"type":15},"Debugging","debugging",{"name":9,"slug":8,"type":15},{"name":17,"slug":18,"type":15},"2026-07-18T05:46:52.798151",{"slug":6714,"name":6714,"fn":6715,"description":6716,"org":6717,"tags":6718,"stars":23,"repoUrl":24,"updatedAt":6722},"links","configure tRPC client link chains","Configure the tRPC client link chain: httpLink, httpBatchLink, httpBatchStreamLink, splitLink, loggerLink, wsLink, createWSClient, httpSubscriptionLink, unstable_localLink, retryLink. Choose the right terminating link. Route subscriptions via splitLink. Build custom links for SOA routing. Link options: url, headers, transformer, maxURLLength, maxItems, connectionParams, EventSource ponyfill.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[6719,6720,6721],{"name":21,"slug":22,"type":15},{"name":6697,"slug":6698,"type":15},{"name":9,"slug":8,"type":15},"2026-07-18T05:47:06.847309",{"slug":6525,"name":6525,"fn":6724,"description":6725,"org":6726,"tags":6727,"stars":23,"repoUrl":24,"updatedAt":6733},"compose middleware for tRPC procedures","Create and compose tRPC middleware with t.procedure.use(), extend context via opts.next({ ctx }), build reusable middleware with .concat() and .unstable_pipe(), define base procedures like publicProcedure and authedProcedure. Access raw input with getRawInput(). Logging, timing, OTEL tracing patterns.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[6728,6729,6732],{"name":13,"slug":14,"type":15},{"name":6730,"slug":6731,"type":15},"Middleware","middleware",{"name":9,"slug":8,"type":15},"2026-07-18T05:46:49.132255",{"slug":6735,"name":6735,"fn":6736,"description":6737,"org":6738,"tags":6739,"stars":23,"repoUrl":24,"updatedAt":6747},"nextjs-app-router","implement tRPC in Next.js App Router","Full end-to-end tRPC setup for Next.js App Router. Covers route handler with fetchRequestHandler (GET + POST exports), TRPCProvider with QueryClientProvider, createTRPCOptionsProxy for RSC prefetching, HydrateClient\u002FHydrationBoundary for hydration, useSuspenseQuery for Suspense, and server-side callers.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[6740,6741,6742,6745,6746],{"name":13,"slug":14,"type":15},{"name":6697,"slug":6698,"type":15},{"name":6743,"slug":6744,"type":15},"Next.js","next-js",{"name":9,"slug":8,"type":15},{"name":17,"slug":18,"type":15},"2026-07-18T05:47:10.468453",{"items":6749,"total":2640},[6750,6757,6764,6771,6779,6786,6793],{"slug":6592,"name":6592,"fn":6593,"description":6594,"org":6751,"tags":6752,"stars":23,"repoUrl":24,"updatedAt":6603},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[6753,6754,6755,6756],{"name":21,"slug":22,"type":15},{"name":6599,"slug":6600,"type":15},{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},{"slug":6605,"name":6605,"fn":6606,"description":6607,"org":6758,"tags":6759,"stars":23,"repoUrl":24,"updatedAt":6616},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[6760,6761,6762,6763],{"name":21,"slug":22,"type":15},{"name":13,"slug":14,"type":15},{"name":6613,"slug":6614,"type":15},{"name":9,"slug":8,"type":15},{"slug":6618,"name":6618,"fn":6619,"description":6620,"org":6765,"tags":6766,"stars":23,"repoUrl":24,"updatedAt":6629},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[6767,6768,6769,6770],{"name":21,"slug":22,"type":15},{"name":13,"slug":14,"type":15},{"name":6626,"slug":6627,"type":15},{"name":9,"slug":8,"type":15},{"slug":6580,"name":6580,"fn":6631,"description":6632,"org":6772,"tags":6773,"stars":23,"repoUrl":24,"updatedAt":6648},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[6774,6775,6776,6777,6778],{"name":6636,"slug":6637,"type":15},{"name":6639,"slug":6640,"type":15},{"name":6642,"slug":6643,"type":15},{"name":9,"slug":8,"type":15},{"name":6646,"slug":6647,"type":15},{"slug":6569,"name":6569,"fn":6650,"description":6651,"org":6780,"tags":6781,"stars":23,"repoUrl":24,"updatedAt":6660},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[6782,6783,6784,6785],{"name":21,"slug":22,"type":15},{"name":13,"slug":14,"type":15},{"name":6657,"slug":6658,"type":15},{"name":9,"slug":8,"type":15},{"slug":6662,"name":6662,"fn":6663,"description":6664,"org":6787,"tags":6788,"stars":23,"repoUrl":24,"updatedAt":6674},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[6789,6790,6791,6792],{"name":6668,"slug":6662,"type":15},{"name":6670,"slug":6671,"type":15},{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},{"slug":6676,"name":6676,"fn":6677,"description":6678,"org":6794,"tags":6795,"stars":23,"repoUrl":24,"updatedAt":6688},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[6796,6797,6798,6799],{"name":13,"slug":14,"type":15},{"name":6683,"slug":6676,"type":15},{"name":6685,"slug":6686,"type":15},{"name":9,"slug":8,"type":15}]