React app static hosting?

In my .replit file, when my run command is npm run dev, the web page appears. When I change it to npm run build, the web page does not appear. I want to be able to simply run the build and have a static webpage appear in the web preview! Why does this not work? It is a very simply website and does not require anything a static website couldn’t handle. Am I doing something wrong or is this just how replit works?

Repl link:

code snippet

your repl gives a 404, but