In this lesson, we’ll refactor our error handling code into a route validation method instead. The validate method on definePageMeta is a middleware shorthand that makes it easy to add route validation to any page.
We also discuss how to think about server-side error handling, and where we should be putting it.
validate method on definePageMeta: https://v3.nuxtjs.org/api/utils/define-page-meta
18 lessons
7 lessons
7 lessons
11 lessons
18 lessons
8 lessons
17 lessons