Fix SSR 500 by proxying API requests to the Nuxt server port.
deploy to danak / build_and_deploy (push) Has been cancelled
deploy to danak / build_and_deploy (push) Has been cancelled
Point axios proxy at the same process as serverMiddleware instead of an unused port, and allow MongoDB URI to be configured via env. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1030,7 +1030,8 @@ export default {
|
||||
blogPosts: blogPosts.data
|
||||
}
|
||||
} catch (e) {
|
||||
error({ status: 500, message: 'there is a problem here' })
|
||||
console.error('Homepage asyncData failed:', e.message || e)
|
||||
error({ statusCode: 500, message: 'there is a problem here' })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user