
* add trpc * trpc specific * fix deps * lint fix * upgrade prisma * nativeTypes * nope, not needed * fix app propviders * Revert "upgrade prisma" This reverts commit e6f2d2542a01ec82c80aa2fe367ae12c68ded1a5. * rev * up trpc * simplify * wip - bookings page with trpc * bookings using trpc * fix `Shell` props * call it viewerRouter instead * cleanuop * ssg helper * fix lint * fix types * skip * add `useRedirectToLoginIfUnauthenticated` * exhaustive-deps * fix callbackUrl * rewrite `/availability` using trpc Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
14 lines
257 B
TypeScript
14 lines
257 B
TypeScript
import { createSSGHelpers } from "@trpc/react/ssg";
|
|
|
|
import prisma from "@lib/prisma";
|
|
|
|
import { appRouter } from "./routers/_app";
|
|
|
|
export const ssg = createSSGHelpers({
|
|
router: appRouter,
|
|
ctx: {
|
|
prisma,
|
|
session: null,
|
|
user: null,
|
|
},
|
|
});
|