`not-found.tsx` fails to load in Vercel deployment only

Author: dovkoyCreated Jul 31, 2025Updated Feb 23, 2026

Bug When navigating to any 404 route in a Vercel deployment of this template, the not-found.tsx component flashes and the page goes blank. There are no error/warning logs server-side.

A couple errors are surfaced in the browser (note the rendered "not found" component is received, however):

Image

Reproducing

  • Navigate to any 404 route in a Vercel deployment from this template. For example: https://next-saas-start.vercel.app/fakeroute
  • Confirmed on Chrome for desktop and iOS.
  • Does not occur locally, even with npm run build and npm run start