I need to add generateStaticParams
function for locales:
export function generateStaticParams() {
return routing.locales.map((locale) => ({ locale }));
}
export default async function LocaleLayout({ children, params }) {
...
}
now all my component inside [locale] path are SSG (prerendered as static HTML) which have the same result as static, if i'm not wrong, extremely fast and effective for SEO