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
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export async function generateStaticParams() {
}
```

> **Good to know:** You must always return an array from `generateStaticParams`, even if it's empty. Otherwise, the route will be dynamically rendered.
> **Good to know:** You must always return an array from `generateStaticParams`, even if it's empty. When [`cacheComponents`](/docs/app/api-reference/config/next-config-js/cacheComponents) is enabled, return a placeholder for build-time validation (e.g. `[{slug: '__placeholder__'}]`). Otherwise, the route will be dynamically rendered.

```jsx filename="app/changelog/[slug]/page.js"
export const dynamic = 'force-static'
Expand Down
Loading