Fix homepage API 500 by using axios baseURL and stable paginate.
deploy to danak / build_and_deploy (push) Has been cancelled
deploy to danak / build_and_deploy (push) Has been cancelled
Replace self-proxy with direct SSR baseURL, rewrite blog post pagination with async/await, pin mongoose-paginate-v2, and add API error logging. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1030,7 +1030,12 @@ export default {
|
||||
blogPosts: blogPosts.data
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('Homepage asyncData failed:', e.message || e)
|
||||
console.error('Homepage asyncData failed:', {
|
||||
url: e.config?.url,
|
||||
status: e.response?.status,
|
||||
data: e.response?.data,
|
||||
message: e.message
|
||||
})
|
||||
error({ statusCode: 500, message: 'there is a problem here' })
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user