wip(org): Changes to page structure
This commit is contained in:
parent
567ea009fd
commit
aeeca88641
3 changed files with 70 additions and 4 deletions
|
@ -159,11 +159,17 @@ export const getStaticPaths = async () => {
|
|||
`${strapiHost}/blogposts?_locale=en&dev_ne=true&_limit=-1`
|
||||
)
|
||||
.then(response => response.json())
|
||||
.then(data => data.map(post => ({ params: { slug: post.slug } })))
|
||||
.then(data => data.map(post => `/blog/${post.slug}`))
|
||||
.catch(err => console.log(err))
|
||||
|
||||
return {
|
||||
paths,
|
||||
paths: [
|
||||
...paths,
|
||||
...paths.map(p => `/de${p}`),
|
||||
...paths.map(p => `/es${p}`),
|
||||
...paths.map(p => `/fr${p}`),
|
||||
...paths.map(p => `/nl${p}`),
|
||||
],
|
||||
fallback: false,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue