Join our community

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

3-0 Making Our App Robust

In this chapter, we’ll work on making our app more robust and reliable for our end users.

We start by adding in some TypeScript to avoid the most common types of problems with our code. Then we’ll look at adding a custom 404 page.

After that, we tackle handling client-side errors using the NuxtErrorBoundary component. We see how we can resolve errors in a couple different ways. Then we implement server-side error handling, as well as adding in a custom error page for our app.

Finally, we refactor some of our error handling into route validation instead, using the validate function on definePageMeta.