From 834bfbabddc6d1990764d638461220a85cd6b841 Mon Sep 17 00:00:00 2001 From: sevtdy Date: Fri, 21 Nov 2025 05:16:26 +0800 Subject: [PATCH 1/2] Update missing information ref: for build-time validation --- .../03-api-reference/04-functions/generate-static-params.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/01-app/03-api-reference/04-functions/generate-static-params.mdx b/docs/01-app/03-api-reference/04-functions/generate-static-params.mdx index aecceb326115f5..d0c6f84f1b59d2 100644 --- a/docs/01-app/03-api-reference/04-functions/generate-static-params.mdx +++ b/docs/01-app/03-api-reference/04-functions/generate-static-params.mdx @@ -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: '__placeholader__'}]`). Otherwise, the route will be dynamically rendered. ```jsx filename="app/changelog/[slug]/page.js" export const dynamic = 'force-static' From 709612f6f862e6c794a6c200774469c676aa7212 Mon Sep 17 00:00:00 2001 From: sevtdy Date: Fri, 21 Nov 2025 05:41:21 +0800 Subject: [PATCH 2/2] Update docs/01-app/03-api-reference/04-functions/generate-static-params.mdx Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com> --- .../03-api-reference/04-functions/generate-static-params.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/01-app/03-api-reference/04-functions/generate-static-params.mdx b/docs/01-app/03-api-reference/04-functions/generate-static-params.mdx index d0c6f84f1b59d2..290e160e842707 100644 --- a/docs/01-app/03-api-reference/04-functions/generate-static-params.mdx +++ b/docs/01-app/03-api-reference/04-functions/generate-static-params.mdx @@ -291,7 +291,7 @@ export async function generateStaticParams() { } ``` -> **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: '__placeholader__'}]`). 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'