We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88cdeb9 commit a21676cCopy full SHA for a21676c
1 file changed
website/src/pages/[locale]/supported-networks/[id].mdx
@@ -8,13 +8,16 @@ import { getSupportedNetworks } from '@/supportedNetworks'
8
9
export const getStaticPaths = async () => {
10
const networks = await getSupportedNetworks()
11
- const paths = supportedLocales.flatMap((locale) =>
12
- networks.map((network) => ({
13
- params: { locale, id: network.id },
14
- }))
15
- )
16
-
17
-return { paths, fallback: false } }
+ const paths = []
+ for (const locale of supportedLocales) {
+ for (const network of networks) {
+ paths.push({
+ params: { locale, id: network.id },
+ })
+ }
18
19
+ return { paths, fallback: false }
20
+}
21
22
export const getStaticProps = async ({ params }) => {
23
const { locale, id } = params
0 commit comments