Under Maintenance

Under Maintenance
Photo by SumUp / Unsplash

Error fetching posts: Error [AxiosError]: There is no suitable adapter to dispatch the request since :

  • adapter xhr is not supported by the environment
  • adapter http is not available in the build
    at browse (lib/ghost.ts:13:34)
    at getAllPosts (app/posts/page.tsx:6:41)
    11 | export async function getAllPosts(): Promise<Post[]> {
    12 | try {
13 | const posts = await api.posts.browse({
| ^
14 | limit: 'all',
15 | include: ['tags', 'authors'],
16 | }); {
code: 'ERR_NOT_SUPPORT',
constructor: [Function],
toJSON: [Function: toJSON]
}
Fetched Posts: []