Custom 404 not displaying correctly

Amusingly it’ll almost certainly be because the 404.html page doesn’t exist in your Publish directory.

Run your Vite build locally and check what it outputs, you’ll find your 404.html isn’t being output.

See: