offset-limit-fix-1
This commit is contained in:
parent
a6691fc426
commit
00a0f9886c
|
@ -4,8 +4,8 @@ import { devtoolsExchange } from '@urql/devtools'
|
|||
// FIXME actual value
|
||||
const isDev = true
|
||||
|
||||
// export const baseUrl = 'https://newapi.discours.io'
|
||||
export const baseUrl = 'http://localhost:8000'
|
||||
export const baseUrl = 'https://newapi.discours.io'
|
||||
// export const baseUrl = 'http://localhost:8000'
|
||||
|
||||
const exchanges: Exchange[] = [dedupExchange, fetchExchange]
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import Zine from '../../../layouts/zine.astro'
|
|||
import { apiClient } from '../../../utils/apiClient'
|
||||
|
||||
const slug = Astro.params.slug.toString()
|
||||
const articles = await apiClient.getArticlesForAuthors({ authorSlugs: [slug] })
|
||||
const articles = await apiClient.getArticlesForAuthors({ authorSlugs: [slug], offset: 0, limit: 50 })
|
||||
const author = articles[0].authors.find((a) => a.slug === slug)
|
||||
|
||||
Astro.response.headers.set('Cache-Control', 's-maxage=1, stale-while-revalidate')
|
||||
|
|
Loading…
Reference in New Issue
Block a user