This is what the agent has told me on two separate builds today;
Your app used to work because Replit’s deployment system automatically copied everything from dist/public/ into server/public/ during deploys.
Recently, Replit made some “autoscale deployment optimizations” (mentioned in their docs). One side effect is that this automatic file copying no longer happens.
That’s why your app suddenly broke, Replit stopped moving your built static files into the folder your server expects.
Fix: You’ll now need to handle that file copy yourself (e.g. via a build script or manual step) to make sure server/public/ has the right files.