Custom 404 page instead of "Your slicezone is empty" nuxtjs

Greetings.

I'm having trouble displaying a 404 custom page instead of the default "Your slicezone is empty. To start rendering components....." page.

I'm using slicezone, and I cannot, for the life of me, find out how to achieve this.

I also created a link-resolver inside /app/prismic/link-resolver.js but honestly, it doesn't seem to work at all. It was my understanding that the link-resolver is used to redirect the content to be displayed and not the actual "URL", but I can't seem to catch the 404 error.

How can I achieve what I'm aiming to?

Thanks and best regards.

Hi Marco,

So this message is only displayed in development mode as described here:

So it will only redirect to the default 404 in production mode. You can also create a custom 404 as described here:

The linkresolver is only used to direct to existing Prismic pages, but the routes must match the page structure of your project.

Let me know if you have any further questions.

Thanks.

Thank you Phil, now it makes much more sense!

Best regards

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.