Npm run build creates folders for each page

When i run the build it creates folders for every single page besides the homepage and thus when i open those pages there is no image in them because it cannot access it how can i solve it. React btw.

Building what? build is just an alias for some arbitrary script command that’s defined in a package.json file, it can do anything. It’s impossible to provide help without an explanation of what you’re doing

Check what the “build” command is doing in the package.json file. Or if you could post the code in your package.json file, I’ll be able to help you.