Scheduling infrastructure for absolutely everyone.
remove pages router and use app router for insights pages (#18088)
Benny Jooaf43ede38e46
diff --git a/apps/web/app/future/insights/page.tsx b/apps/web/app/insights/page.tsxsimilarity index 100%rename from apps/web/app/future/insights/page.tsxrename to apps/web/app/insights/page.tsxdiff --git a/apps/web/app/insights/routing/page.tsx b/apps/web/app/insights/routing/page.tsxnew file mode 100644index 00000000000..f6a01045f12--- /dev/null+++ b/apps/web/app/insights/routing/page.tsx@@ -0,0 +1,17 @@+import { withAppDirSsr } from "app/WithAppDirSsr";+import { _generateMetadata } from "app/_utils";+import { WithLayout } from "app/layoutHOC";++import { getServerSideProps } from "@lib/insights/getServerSideProps";++import InsightsRoutingPage from "~/insights/insights-routing-view";++export const generateMetadata = async () =>+ await _generateMetadata(+ (t) => t("insights"),+ (t) => t("insights_subtitle")+ );++const getData = withAppDirSsr(getServerSideProps);++export default WithLayout({ getLayout: null, getData, Page: InsightsRoutingPage });diff --git a/apps/web/pages/insights/index.tsx b/apps/web/pages/insights/index.tsxdeleted file mode 100644index fa860836ac5..00000000000--- a/apps/web/pages/insights/index.tsx+++ /dev/null@@ -1,13 +0,0 @@-"use client";--import { getServerSideProps } from "@lib/insights/getServerSideProps";--import PageWrapper from "@components/PageWrapper";--import type { PageProps } from "~/insights/insights-view";-import InsightsPage from "~/insights/insights-view";--const Page = (props: PageProps) => <InsightsPage {...props} />;-Page.PageWrapper = PageWrapper;-export default Page;-export { getServerSideProps };diff --git a/apps/web/pages/insights/routing/index.tsx b/apps/web/pages/insights/routing/index.tsxdeleted file mode 100644index 5ae85bea532..00000000000--- a/apps/web/pages/insights/routing/index.tsx+++ /dev/null@@ -1,12 +0,0 @@-"use client";--import { getServerSideProps } from "@lib/insights/getServerSideProps";--import PageWrapper from "@components/PageWrapper";--import InsightsPage from "~/insights/insights-routing-view";--const Page = () => <InsightsPage />;-Page.PageWrapper = PageWrapper;-export default Page;-export { getServerSideProps };diff --git a/apps/web/scripts/vercel-app-router-deploy.sh b/apps/web/scripts/vercel-app-router-deploy.shindex d2b3a9680b3..2942c040616 100755--- a/apps/web/scripts/vercel-app-router-deploy.sh+++ b/apps/web/scripts/vercel-app-router-deploy.sh@@ -35,7 +35,6 @@ rm -rf \app/future/booking\app/future/d\app/future/enterprise\- app/future/insights\app/future/org\app/future/payment\app/future/reschedule\