From 293d855d067964d2ba4169f0a5a36c615fb9b3ac Mon Sep 17 00:00:00 2001 From: Danijel Martinek Date: Tue, 5 May 2026 08:54:41 +0200 Subject: [PATCH] feat(web-next): render /about marketing page via marketingPages.pageBySlug --- apps/web-next/src/app/about/page.tsx | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 apps/web-next/src/app/about/page.tsx diff --git a/apps/web-next/src/app/about/page.tsx b/apps/web-next/src/app/about/page.tsx new file mode 100644 index 0000000..2f85681 --- /dev/null +++ b/apps/web-next/src/app/about/page.tsx @@ -0,0 +1,31 @@ +import { appRouter } from "@repo/core-api"; +import { bindAllProduction } from "../../server/bind-production"; + +export default async function AboutPage() { + await bindAllProduction(); + const caller = appRouter.createCaller({}); + const page = await caller.marketingPages.pageBySlug({ slug: "about" }); + + if (!page) { + return ( +
+

About

+

This page hasn't been published yet.

+
+ ); + } + + return ( +
+
+
+

{page.hero.heading}

+ {page.hero.subheading ?

{page.hero.subheading}

: null} +
+
+          {JSON.stringify(page.layout, null, 2)}
+        
+
+
+ ); +}