We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d0ac8f commit b784be1Copy full SHA for b784be1
1 file changed
app/[page]/page.tsx
@@ -4,9 +4,9 @@ import path from 'path'
4
import { MDXRemote } from 'next-mdx-remote/rsc'
5
6
interface PageProps {
7
- params: {
+ params: Promise<{
8
page: string
9
- }
+ }>
10
}
11
12
// Get all available MDX files for static generation
@@ -27,7 +27,7 @@ export async function generateStaticParams() {
27
28
29
export default async function DynamicPage({ params }: PageProps) {
30
- const { page } = params
+ const { page } = await params
31
32
try {
33
// Read the MDX file
0 commit comments