From 145267249590e02114ab532bbe2836432dbba6b6 Mon Sep 17 00:00:00 2001 From: Benny Joo Date: Tue, 7 Jan 2025 05:28:55 -0500 Subject: [PATCH] withEmbedSsr is missing in a embed route (#18483) --- apps/web/pages/[user]/embed.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/web/pages/[user]/embed.tsx b/apps/web/pages/[user]/embed.tsx index 25046a2447..2d2ccfd417 100644 --- a/apps/web/pages/[user]/embed.tsx +++ b/apps/web/pages/[user]/embed.tsx @@ -1,3 +1,6 @@ +import { getServerSideProps as _getServerSideProps } from "@lib/org/[orgSlug]/[user]/getServerSideProps"; +import withEmbedSsr from "@lib/withEmbedSsr"; + import PageWrapper from "@components/PageWrapper"; import type { PageProps as TeamPageProps } from "~/team/team-view"; @@ -5,10 +8,9 @@ import TeamPage from "~/team/team-view"; import UserPage from "~/users/views/users-public-view"; import type { PageProps as UserPageProps } from "~/users/views/users-public-view"; -export { getServerSideProps } from "@lib/org/[orgSlug]/[user]/getServerSideProps"; - export type PageProps = UserPageProps | TeamPageProps; +export const getServerSideProps = withEmbedSsr(_getServerSideProps); function Page(props: PageProps) { if ((props as TeamPageProps)?.team) return ; return ;