From acf2487eaae1002f4b4b90794e5918e507a96f3e Mon Sep 17 00:00:00 2001 From: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> Date: Sun, 2 Apr 2023 15:53:30 +0530 Subject: [PATCH] fix: use ssrinit in /apps (#7807) Signed-off-by: Udit Takkar --- apps/web/pages/apps/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/pages/apps/index.tsx b/apps/web/pages/apps/index.tsx index ba90bcd8ce..303c69643a 100644 --- a/apps/web/pages/apps/index.tsx +++ b/apps/web/pages/apps/index.tsx @@ -14,7 +14,7 @@ import { FiSearch } from "@calcom/ui/components/icon"; import AppsLayout from "@components/apps/layouts/AppsLayout"; -import { ssgInit } from "@server/lib/ssg"; +import { ssrInit } from "@server/lib/ssr"; const tabs: HorizontalTabItemProps[] = [ { @@ -88,7 +88,7 @@ export default function Apps({ categories, appStore }: inferSSRProps { const { req, res } = context; - const ssg = await ssgInit(context); + const ssr = await ssrInit(context); const session = await getServerSession({ req, res }); @@ -119,7 +119,7 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) => return b.count - a.count; }), appStore, - trpcState: ssg.dehydrate(), + trpcState: ssr.dehydrate(), }, }; };