Join our community

Get access to the complete guide to developing and deploying fast, production-ready Nuxt apps.

3-5 Route Validation

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