mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
b33bbb8af0
* fix: manage seo index * Update apps/web/app/(booking-page-wrapper)/[user]/[type]/embed/page.tsx Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> * update * tweak --------- Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
29 lines
868 B
TypeScript
29 lines
868 B
TypeScript
import withEmbedSsrAppDir from "app/WithEmbedSSR";
|
|
import type { PageProps as ServerPageProps } from "app/_types";
|
|
import { cookies, headers } from "next/headers";
|
|
|
|
import { buildLegacyCtx } from "@lib/buildLegacyCtx";
|
|
|
|
import { getServerSideProps } from "@server/lib/[user]/getServerSideProps";
|
|
|
|
import User, { type PageProps as ClientPageProps } from "~/users/views/users-public-view";
|
|
|
|
export const generateMetadata = async () => {
|
|
return {
|
|
robots: {
|
|
follow: false,
|
|
index: false,
|
|
},
|
|
};
|
|
};
|
|
|
|
const getData = withEmbedSsrAppDir<ClientPageProps>(getServerSideProps);
|
|
|
|
const ServerPage = async ({ params, searchParams }: ServerPageProps) => {
|
|
const context = buildLegacyCtx(await headers(), await cookies(), await params, await searchParams);
|
|
const props = await getData(context);
|
|
return <User {...props} />;
|
|
};
|
|
|
|
export default ServerPage;
|