Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/docs/content/docs/guides/frameworks/nextjs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ In the `posts` directory, create a new `[id]` directory and a new `page.tsx` fil
mkdir -p "app/posts/[id]" && touch "app/posts/[id]/page.tsx"
```

This page will display a single post's title, content, and author. Just like your other pages, add the following code to the `app/posts/new/page.tsx` file:
This page will display a single post's title, content, and author. Just like your other pages, add the following code to the `app/posts/[id]/page.tsx` file:

```tsx title="app/posts/[id]/page.tsx"
import prisma from "@/lib/prisma";
Expand Down