Skip to content

Commit b784be1

Browse files
authored
fix webpack issues (#7)
1 parent 6d0ac8f commit b784be1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/[page]/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import path from 'path'
44
import { MDXRemote } from 'next-mdx-remote/rsc'
55

66
interface PageProps {
7-
params: {
7+
params: Promise<{
88
page: string
9-
}
9+
}>
1010
}
1111

1212
// Get all available MDX files for static generation
@@ -27,7 +27,7 @@ export async function generateStaticParams() {
2727
}
2828

2929
export default async function DynamicPage({ params }: PageProps) {
30-
const { page } = params
30+
const { page } = await params
3131

3232
try {
3333
// Read the MDX file

0 commit comments

Comments
 (0)