We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe07468 commit fab585aCopy full SHA for fab585a
tests/fixtures/page-router-base-path-i18n/pages/fallback-true/[slug].js
@@ -27,15 +27,16 @@ export async function getStaticProps({ params }) {
27
}
28
29
30
-export const getStaticPaths = () => {
+/** @type {import('next').GetStaticPaths} */
31
+export const getStaticPaths = ({ locales }) => {
32
return {
33
paths: [
34
{
35
params: {
36
slug: 'prerendered',
37
},
38
- ],
39
+ ].flatMap((pathDescription) => locales.map((locale) => ({ ...pathDescription, locale }))),
40
fallback: true,
41
42
0 commit comments