Netlify not showing custom error page in Nuxtjs

I am using Nuxt.js to build a blog in which I have added a custom error page in layouts/error.vue.

It is working fine on my local machine but not working when I deployed it to netlify.

Is this something with netlify or my nuxt app?

Hey @ishaan005

I’m not sure if you’ve seen this resource on the NuxtJS website, but it may help you out.

NuxtJS: How to deploy on Netlify