File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,9 @@ async function getMarkdownContent(docs_id: string): Promise<string> {
3535export async function generateMetadata ( {
3636 params,
3737} : {
38- params : { docs_id : string } ;
38+ params : Promise < { docs_id : string } > ;
3939} ) : Promise < Metadata > {
40- const { docs_id } = params ;
40+ const { docs_id } = await params ;
4141 const mdContent = await getMarkdownContent ( docs_id ) ;
4242 const splitMdContent = splitMarkdown ( mdContent ) ;
4343
@@ -57,9 +57,9 @@ export async function generateMetadata({
5757export default async function Page ( {
5858 params,
5959} : {
60- params : { docs_id : string } ;
60+ params : Promise < { docs_id : string } > ;
6161} ) {
62- const { docs_id } = params ;
62+ const { docs_id } = await params ;
6363
6464 const mdContent = getMarkdownContent ( docs_id ) ;
6565 const splitMdContent = mdContent . then ( ( text ) => splitMarkdown ( text ) ) ;
You can’t perform that action at this time.
0 commit comments