Skip to content

Scheduling infrastructure for absolutely everyone.

fix: fix build error caused by 'export' keyword before getData (#13276)

DmytroHryshyn8467a9c53b47
diff --git a/apps/web/app/future/org/[orgSlug]/[user]/[type]/embed/page.tsx b/apps/web/app/future/org/[orgSlug]/[user]/[type]/embed/page.tsx
index 381ba7d88fd..5df230f6325 100644
--- a/apps/web/app/future/org/[orgSlug]/[user]/[type]/embed/page.tsx
+++ b/apps/web/app/future/org/[orgSlug]/[user]/[type]/embed/page.tsx
@@ -1,8 +1,12 @@
+import { type PageProps } from "@pages/org/[orgSlug]/[user]/[type]";
import Page from "@pages/org/[orgSlug]/[user]/[type]/embed";
+import { withAppDir } from "app/AppDirSSRHOC";
import withEmbedSsrAppDir from "app/WithEmbedSSR";
import { WithLayout } from "app/layoutHOC";
-import { getData } from "../page";
+import { getServerSideProps } from "@lib/org/[orgSlug]/[user]/[type]/getServerSideProps";
+
+const getData = withAppDir<PageProps>(getServerSideProps);
const getEmbedData = withEmbedSsrAppDir(getData);
diff --git a/apps/web/app/future/org/[orgSlug]/[user]/[type]/page.tsx b/apps/web/app/future/org/[orgSlug]/[user]/[type]/page.tsx
index e26772b7a2f..5355468abfc 100644
--- a/apps/web/app/future/org/[orgSlug]/[user]/[type]/page.tsx
+++ b/apps/web/app/future/org/[orgSlug]/[user]/[type]/page.tsx
@@ -4,6 +4,6 @@ import { WithLayout } from "app/layoutHOC";
import { getServerSideProps } from "@lib/org/[orgSlug]/[user]/[type]/getServerSideProps";
-export const getData = withAppDir<PageProps>(getServerSideProps);
+const getData = withAppDir<PageProps>(getServerSideProps);
export default WithLayout({ getLayout: null, getData, isBookingPage: true, Page });
diff --git a/apps/web/app/future/org/[orgSlug]/[user]/embed/page.tsx b/apps/web/app/future/org/[orgSlug]/[user]/embed/page.tsx
index 53ffe3aef26..c522f02c16e 100644
--- a/apps/web/app/future/org/[orgSlug]/[user]/embed/page.tsx
+++ b/apps/web/app/future/org/[orgSlug]/[user]/embed/page.tsx
@@ -1,9 +1,10 @@
+import { getServerSideProps, type PageProps } from "@pages/org/[orgSlug]/[user]";
import Page from "@pages/org/[orgSlug]/[user]/embed";
+import { withAppDir } from "app/AppDirSSRHOC";
import withEmbedSsrAppDir from "app/WithEmbedSSR";
import { WithLayout } from "app/layoutHOC";
-import { getData } from "../page";
-
+const getData = withAppDir<PageProps>(getServerSideProps);
const getEmbedData = withEmbedSsrAppDir(getData);
export default WithLayout({ getLayout: null, getData: getEmbedData, isBookingPage: true, Page });
diff --git a/apps/web/app/future/org/[orgSlug]/[user]/page.tsx b/apps/web/app/future/org/[orgSlug]/[user]/page.tsx
index dc2e19496c8..3acb0404dcb 100644
--- a/apps/web/app/future/org/[orgSlug]/[user]/page.tsx
+++ b/apps/web/app/future/org/[orgSlug]/[user]/page.tsx
@@ -2,6 +2,6 @@ import Page, { getServerSideProps, type PageProps } from "@pages/org/[orgSlug]/[
import { withAppDir } from "app/AppDirSSRHOC";
import { WithLayout } from "app/layoutHOC";
-export const getData = withAppDir<PageProps>(getServerSideProps);
+const getData = withAppDir<PageProps>(getServerSideProps);
export default WithLayout({ getLayout: null, getData, isBookingPage: true, Page });