Skip to content

Commit

Permalink
fix: fix type issues in next recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Sep 7, 2023
1 parent 8fd7b3b commit b16e98e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -24,7 +24,7 @@ export async function generateMetadata({
)[path];

return {
title: data?.page?.title,
title: data?.root?.title,
};
}

Expand Down
2 changes: 1 addition & 1 deletion recipes/next/app/[...puckPath]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function generateMetadata({
)[path];

return {
title: data?.page?.title,
title: data?.root?.title,
};
}

Expand Down

0 comments on commit b16e98e

Please sign in to comment.