mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-01-29 11:20:34 +01:00
Import Sentry
This commit is contained in:
@@ -36,13 +36,16 @@ import {Post} from "../../@types/types";
|
||||
export default defineComponent({
|
||||
name: "PostsHome",
|
||||
setup() {
|
||||
const { $content, i18n } = useContext()
|
||||
const { $content, i18n, $sentry } = useContext()
|
||||
|
||||
const posts = useAsync(() => {
|
||||
return $content(`articles/${i18n.locale}`)
|
||||
.sortBy('date', 'asc')
|
||||
.limit(3)
|
||||
.fetch<Post>()
|
||||
.catch((error) => {
|
||||
$sentry.captureEvent(error)
|
||||
})
|
||||
}, 'posts')
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user