perf: Remove ssrInit completely (#20439)

* remove ssrInit completely

* remove instances of dehydratedState

* fix

* refactor

* fix type checks

* fix linting

* Refactor

* Refactor

* remove log
This commit is contained in:
Benny Joo
2025-04-01 19:14:46 -04:00
committed by GitHub
parent b5b4134b75
commit 75c79f76c8
30 changed files with 70 additions and 209 deletions
+2 -5
View File
@@ -3,17 +3,14 @@ import type { CalendsoSessionUser } from "next-auth";
import type prisma from "@calcom/prisma";
import type { ssrInit } from "@server/lib/ssr";
export type AppUser = CalendsoSessionUser | undefined;
export type AppPrisma = typeof prisma;
export type AppGetServerSidePropsContext = GetServerSidePropsContext<{
pages: string[];
}>;
export type AppSsrInit = ssrInit;
export type AppGetServerSideProps = (
context: AppGetServerSidePropsContext,
prisma: AppPrisma,
user: AppUser,
ssrInit: AppSsrInit
user: AppUser
) => GetServerSidePropsResult;