本页还没有译文
本页 4 段还没译成日本語,下面显示的是英文原文。dynamicParams
还没翻译译自英文(nextjs.org)本页 4 段都还没译
The dynamicParams option allows you to control what happens when a dynamic segment is visited that was not generated with generateStaticParams.
TypeScriptJavaScript
layout.tsx | page.tsx
export const dynamicParams = true // true | falselayout.js | page.js | route.js
export const dynamicParams = true // true | falsetrue(default): Dynamic route segments not included ingenerateStaticParamsare generated at request time.false: Dynamic route segments not included ingenerateStaticParamswill return a 404.
Good to know
- This option replaces the
fallback: true | false | blockingoption ofgetStaticPathsin thepagesdirectory. dynamicParamsis not available when Cache Components is enabled.
AI 翻译查看英文原文