SWR, improved vendors list
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
export const getStaticPaths = async () => {
|
||||
const url = new URL(`${process.env.NEXT_PUBLIC_DIRECTUS_API_URL}/items/pages`)
|
||||
url.searchParams.append('fields[]', 'slug')
|
||||
url.searchParams.append('limit', -1)
|
||||
const res = await fetch(url.toString())
|
||||
|
||||
const { data: pages } = await res.json()
|
||||
|
||||
Reference in New Issue
Block a user