commerce icon indicating copy to clipboard operation
commerce copied to clipboard

404 page is not loading

Open danielgent opened this issue 5 years ago • 1 comments

pages/404.tsx is not being picked up by Next.js - https://github.com/vercel/commerce/blob/main/pages/404.tsx

This file has the text The requested page doesn't exist or you don't have access to it.

But the 404 page looks like the default Next.js one e.g. https://demo.vercel.store/foo-bar shows This page could not be found.

This means we can't set our own custom 404 page :smiley:

danielgent avatar Sep 01 '21 12:09 danielgent

I have partially solved this using the _error.tsx page. In this case it is picked-up.

However, this is not a long term fix as according to the docs you should use 404.tsx or 500.tsx pages accordingly.

PolGuixe avatar Dec 23 '21 14:12 PolGuixe