Skip to content

Commit

Permalink
remove pages router and use app router for insights pages (#18088)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj authored Dec 10, 2024
1 parent a66eb9d commit af43ede
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 26 deletions.
File renamed without changes.
17 changes: 17 additions & 0 deletions apps/web/app/insights/routing/page.tsx
Original file line number Diff line number Diff line change
@@ -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 });
13 changes: 0 additions & 13 deletions apps/web/pages/insights/index.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions apps/web/pages/insights/routing/index.tsx

This file was deleted.

1 change: 0 additions & 1 deletion apps/web/scripts/vercel-app-router-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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\
Expand Down

0 comments on commit af43ede

Please sign in to comment.