Import Sentry

This commit is contained in:
2021-04-27 21:47:26 +02:00
parent 6e45298506
commit c202252f3b
16 changed files with 334 additions and 31 deletions

View File

@@ -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 {