From b16e98e15407678524d904211ecc74230b205018 Mon Sep 17 00:00:00 2001 From: Chris Villa Date: Wed, 6 Sep 2023 22:22:35 +0100 Subject: [PATCH] fix: fix type issues in next recipe --- .../create-puck-app/templates/next/app/[...puckPath]/page.tsx | 4 ++-- recipes/next/app/[...puckPath]/page.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/create-puck-app/templates/next/app/[...puckPath]/page.tsx b/packages/create-puck-app/templates/next/app/[...puckPath]/page.tsx index fcbdd5e491..3087232978 100644 --- a/packages/create-puck-app/templates/next/app/[...puckPath]/page.tsx +++ b/packages/create-puck-app/templates/next/app/[...puckPath]/page.tsx @@ -2,7 +2,7 @@ import { Client } from "./client"; import { notFound } from "next/navigation"; import resolvePuckPath from "./resolve-puck-path"; import { Metadata } from "next"; -import { Data } from "@measured/puck/types/Config"; +import { Data } from "@measured/puck"; export async function generateMetadata({ params, @@ -24,7 +24,7 @@ export async function generateMetadata({ )[path]; return { - title: data?.page?.title, + title: data?.root?.title, }; } diff --git a/recipes/next/app/[...puckPath]/page.tsx b/recipes/next/app/[...puckPath]/page.tsx index fcbdd5e491..2b9398a54d 100644 --- a/recipes/next/app/[...puckPath]/page.tsx +++ b/recipes/next/app/[...puckPath]/page.tsx @@ -24,7 +24,7 @@ export async function generateMetadata({ )[path]; return { - title: data?.page?.title, + title: data?.root?.title, }; }