chore: App router migration - (/bookings, /booking) Move getServerSideProps/getStaticProps to /lib (#16458)

* booking: Move getServerSideProps to /lib

* remove duplicate

* bookings: Move getStaticProps to /lib

* fix type check

* replace setHeader with a server action call in withEmbedSSR

* Add env variables for booking
This commit is contained in:
Benny Joo authored and GitHub committed 2024-09-18 19:09:57 -04:00
1 parent a2b064b269
commit 019ef6de2a
5 files changed
+10 -5

No files matched your search

@@ -3,8 +3,6 @@ import { _generateMetadata } from "app/_utils";
import { WithLayout } from "app/layoutHOC";
import type { InferGetStaticPropsType } from "next";
import { APP_NAME } from "@calcom/lib/constants";
import { validStatuses } from "~/bookings/lib/validStatuses";
import Page from "~/bookings/views/bookings-listing-view";
import { getStaticProps } from "~/bookings/views/bookings-listing-view.getStaticProps";
@@ -14,8 +12,8 @@ const getData = withAppDirSsg<Y>(getStaticProps);
export const generateMetadata = async () =>
await _generateMetadata(
(t) => `${APP_NAME} | ${t("bookings")}`,
() => ""
() => "Bookings",
() => "Create events to share for people to book on your calendar."
);
export const generateStaticParams = async () => {