refactor: cleanup use of rawInput and pipe mdwr in trpc router (#7422)

* cleanup use of rawInput and pipe mdwr

* Update ssg.ts

* Update ssg.ts

* Update viewer.tsx

---------

Co-authored-by: zomars <[email protected]>
This commit is contained in:
Julius Marmingeandzomars authored and GitHub committed 2023-02-28 14:40:19 -07:00
1 parent 2529f71770
commit e4b766b9d6
14 files changed
+163 -150

No files matched your search

+1
View File
@@ -26,6 +26,7 @@ export async function ssgInit<TParams extends { locale?: string }>(opts: GetStat
const ssg = createProxySSGHelpers({
router: appRouter,
transformer: superjson,
// @ts-expect-error FIXME The signature expects req and res. Which we don't have in an SSG context.
ctx: {
prisma,
session: null,