fix: use ssrinit in /apps (#7807)

Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
pull/8047/head^2
Udit Takkar 2023-04-02 15:53:30 +05:30 committed by GitHub
parent b81ca0e2ab
commit acf2487eaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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<typeof getS
export const getServerSideProps = async (context: GetServerSidePropsContext) => {
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(),
},
};
};