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:
@@ -3,7 +3,8 @@ module.exports.res404 = (res, err) => {
|
||||
}
|
||||
|
||||
module.exports.res500 = (res, err) => {
|
||||
return res.status(500).json({message: err})
|
||||
console.error('API 500:', err?.message || err)
|
||||
return res.status(500).json({message: err?.message || err})
|
||||
}
|
||||
|
||||
module.exports.checkValidations = validationResult => {
|
||||
|
||||
Reference in New Issue
Block a user