Skip to content

Commit

Permalink
withEmbedSsr is missing in a embed route (#18483)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj authored Jan 7, 2025
1 parent 9159c59 commit 1452672
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/web/pages/[user]/embed.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
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";
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 <TeamPage {...(props as TeamPageProps)} />;
return <UserPage {...(props as UserPageProps)} />;
Expand Down

0 comments on commit 1452672

Please sign in to comment.