React app getting File_not_found on js, Access denied on css

Hello, I'm trying to run a nearly new React project that I created using create-react-app, and then I made a build. The problem I'm having is that initially it doesn't take files from the static folder. At first, I tried moving the CSS and JS files to the root directory, and it worked. But now I'm working on a larger project and I need folder structure. Can anyone tell me if they have encountered something similar, and if there is a ready solution?
Screenshot 2024-04-05 083836