mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This ensures we don't consider a path as ISR in development when it will be dynamic during a build due to no `generateStaticParams` being fully generated for a path. Fixes: https://github.com/vercel/next.js/issues/81976 Closes: NEXT-4650
17 lines
235 B
JavaScript
17 lines
235 B
JavaScript
export const dynamicParams = false
|
|
|
|
export function generateStaticParams() {
|
|
return [
|
|
{
|
|
locale: 'en',
|
|
},
|
|
{
|
|
locale: 'fr',
|
|
},
|
|
]
|
|
}
|
|
|
|
export default function Layout({ children }) {
|
|
return <>{children}</>
|
|
}
|